From d572c3dd6ec7e18005da770f462e2b1f239a5f8e Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 19 Apr 2015 23:19:52 -0500 Subject: [PATCH] Fixed everything! ~Alex --- SigJobs/java/jobsmod/BlockBreakHandler.java | 12 + .../ChannelHandlerJobsmod.java | 0 .../sig/jobs => jobsmod}/ClientProxy.java | 0 .../sig/jobs => jobsmod}/CommonProxy.java | 0 SigJobs/java/jobsmod/EntityHandler.java | 27 ++ .../sig/jobs => jobsmod}/IPacketJobsmain.java | 0 SigJobs/java/jobsmod/Jobs.java | 252 ++++++++++++++++++ .../{org/sig/jobs => jobsmod}/Jobsmain.java | 0 .../{org/sig/jobs => jobsmod}/KeyHandler.java | 2 +- .../{org/sig/jobs => jobsmod}/jobsgui.java | 0 SigJobs/java/org/sig/jobs/Jobsgui.png | Bin 418 -> 0 bytes 11 files changed, 292 insertions(+), 1 deletion(-) create mode 100644 SigJobs/java/jobsmod/BlockBreakHandler.java rename SigJobs/java/{org/sig/jobs => jobsmod}/ChannelHandlerJobsmod.java (100%) rename SigJobs/java/{org/sig/jobs => jobsmod}/ClientProxy.java (100%) rename SigJobs/java/{org/sig/jobs => jobsmod}/CommonProxy.java (100%) create mode 100644 SigJobs/java/jobsmod/EntityHandler.java rename SigJobs/java/{org/sig/jobs => jobsmod}/IPacketJobsmain.java (100%) create mode 100644 SigJobs/java/jobsmod/Jobs.java rename SigJobs/java/{org/sig/jobs => jobsmod}/Jobsmain.java (100%) rename SigJobs/java/{org/sig/jobs => jobsmod}/KeyHandler.java (95%) rename SigJobs/java/{org/sig/jobs => jobsmod}/jobsgui.java (100%) delete mode 100644 SigJobs/java/org/sig/jobs/Jobsgui.png diff --git a/SigJobs/java/jobsmod/BlockBreakHandler.java b/SigJobs/java/jobsmod/BlockBreakHandler.java new file mode 100644 index 0000000..867497e --- /dev/null +++ b/SigJobs/java/jobsmod/BlockBreakHandler.java @@ -0,0 +1,12 @@ +package com.Alex.jobsmod; + +import net.minecraftforge.event.world.BlockEvent.BreakEvent; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; + +public class BlockBreakHandler { + @SubscribeEvent + public void onBlockBreak(BreakEvent ev) { + //ev.getPlayer().addChatComponentMessage(new ChatComponentText(EnumChatFormatting.GOLD+"You broke a block!")); + } + +} diff --git a/SigJobs/java/org/sig/jobs/ChannelHandlerJobsmod.java b/SigJobs/java/jobsmod/ChannelHandlerJobsmod.java similarity index 100% rename from SigJobs/java/org/sig/jobs/ChannelHandlerJobsmod.java rename to SigJobs/java/jobsmod/ChannelHandlerJobsmod.java diff --git a/SigJobs/java/org/sig/jobs/ClientProxy.java b/SigJobs/java/jobsmod/ClientProxy.java similarity index 100% rename from SigJobs/java/org/sig/jobs/ClientProxy.java rename to SigJobs/java/jobsmod/ClientProxy.java diff --git a/SigJobs/java/org/sig/jobs/CommonProxy.java b/SigJobs/java/jobsmod/CommonProxy.java similarity index 100% rename from SigJobs/java/org/sig/jobs/CommonProxy.java rename to SigJobs/java/jobsmod/CommonProxy.java diff --git a/SigJobs/java/jobsmod/EntityHandler.java b/SigJobs/java/jobsmod/EntityHandler.java new file mode 100644 index 0000000..50cbb46 --- /dev/null +++ b/SigJobs/java/jobsmod/EntityHandler.java @@ -0,0 +1,27 @@ +package com.Alex.jobsmod; + +import net.minecraft.entity.player.EntityPlayer; +import net.minecraftforge.event.entity.EntityJoinWorldEvent; +import cpw.mods.fml.common.eventhandler.SubscribeEvent; + +public class EntityHandler { + @SubscribeEvent + public void onPlayerJoin(EntityJoinWorldEvent ev) { + if (ev.entity instanceof EntityPlayer) { + EntityPlayer p = (EntityPlayer)ev.entity; + //Initialize money amount if this player does not have money. + if (!p.getEntityData().hasKey("money")) { + p.getEntityData().setDouble("money", Jobsmain.STARTMONEY); //Start off with $100. + } + //Initialize jobs. + for (int i=0;irvQG@%#|GtNkb?+>*~o6Ozx8;f+#u2JXP{NCY{poa^?cFS~EB>@2r4i*+BCdS4F z2L}ZOAQyyDg*u=zD57xna8VRfprUX|h}l5yBSWGrfVl?A03JT%eEA@}@J-_yk8jKcY@3umid6J3R${d3<9`0vyGbxDpcokT44$rjF6*2U FngG18RuKRI