diff options
Diffstat (limited to 'java/darkknight/jewelrycraft/network/PacketKeyPressEvent.java')
| -rw-r--r-- | java/darkknight/jewelrycraft/network/PacketKeyPressEvent.java | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/java/darkknight/jewelrycraft/network/PacketKeyPressEvent.java b/java/darkknight/jewelrycraft/network/PacketKeyPressEvent.java index c810efd..13d0969 100644 --- a/java/darkknight/jewelrycraft/network/PacketKeyPressEvent.java +++ b/java/darkknight/jewelrycraft/network/PacketKeyPressEvent.java @@ -2,7 +2,6 @@ package darkknight.jewelrycraft.network; import io.netty.buffer.ByteBuf; import net.minecraft.entity.player.EntityPlayer; -import cpw.mods.fml.common.network.ByteBufUtils; import cpw.mods.fml.common.network.simpleimpl.IMessage; import cpw.mods.fml.common.network.simpleimpl.IMessageHandler; import cpw.mods.fml.common.network.simpleimpl.MessageContext; @@ -12,32 +11,46 @@ public class PacketKeyPressEvent implements IMessage, IMessageHandler<PacketKeyP { public int actionID; + /** + * @param id + */ public PacketKeyPressEvent(int id) { actionID = id; } + /** + * + */ public PacketKeyPressEvent() - { - } - + {} + + /** + * @param message + * @param ctx + * @return + */ @Override public IMessage onMessage(PacketKeyPressEvent message, MessageContext ctx) { EntityPlayer sender = ctx.getServerHandler().playerEntity; - // Jewelry inventory if (message.actionID == 0) sender.openGui(JewelrycraftMod.instance, 2, sender.worldObj, (int)sender.posX, (int)sender.posY, (int)sender.posZ); - return null; } - + + /** + * @param buf + */ @Override public void fromBytes(ByteBuf buf) { actionID = buf.readInt(); } - + + /** + * @param buf + */ @Override public void toBytes(ByteBuf buf) { |
