diff options
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/network/PacketSendPlayerInfo.java')
| -rw-r--r-- | src/main/java/darkknight/jewelrycraft/network/PacketSendPlayerInfo.java | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/network/PacketSendPlayerInfo.java b/src/main/java/darkknight/jewelrycraft/network/PacketSendPlayerInfo.java deleted file mode 100644 index e2f66a0..0000000 --- a/src/main/java/darkknight/jewelrycraft/network/PacketSendPlayerInfo.java +++ /dev/null @@ -1,58 +0,0 @@ -package darkknight.jewelrycraft.network; - -import io.netty.buffer.ByteBuf; -import net.minecraft.nbt.NBTTagCompound; -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; -import darkknight.jewelrycraft.events.ScreenHandler; - -public class PacketSendPlayerInfo implements IMessage, IMessageHandler<PacketSendPlayerInfo, IMessage> -{ - public NBTTagCompound tagCompound; - - /** - * @param tagCompound - */ - public PacketSendPlayerInfo(NBTTagCompound tagCompound) - { - this.tagCompound = tagCompound; - } - - /** - * - */ - public PacketSendPlayerInfo() - {} - - /** - * @param message - * @param ctx - * @return - */ - @Override - public IMessage onMessage(PacketSendPlayerInfo message, MessageContext ctx) - { - ScreenHandler.tagCache = message.tagCompound; - return null; - } - - /** - * @param buf - */ - @Override - public void fromBytes(ByteBuf buf) - { - tagCompound = ByteBufUtils.readTag(buf); - } - - /** - * @param buf - */ - @Override - public void toBytes(ByteBuf buf) - { - ByteBufUtils.writeTag(buf, tagCompound); - } -} |
