From 4f7ad220df0438b6f3382110577b53f29da46453 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 24 May 2018 15:50:07 -0400 Subject: Update of all changes --- .../network/PacketSendClientPlayerInfo.java | 91 +++++++++++----------- 1 file changed, 44 insertions(+), 47 deletions(-) mode change 100644 => 100755 src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java (limited to 'src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java') diff --git a/src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java b/src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java old mode 100644 new mode 100755 index c8bf0aa..21000de --- a/src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java +++ b/src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java @@ -8,51 +8,48 @@ import darkknight.jewelrycraft.events.ScreenHandler; import io.netty.buffer.ByteBuf; import net.minecraft.nbt.NBTTagCompound; -public class PacketSendClientPlayerInfo implements IMessage, IMessageHandler -{ - public NBTTagCompound tagCompound; - - /** - * @param tagCompound - */ - public PacketSendClientPlayerInfo(NBTTagCompound tagCompound) - { - this.tagCompound = tagCompound; - } - - /** - * - */ - public PacketSendClientPlayerInfo() - {} - - /** - * @param message - * @param ctx - * @return - */ - @Override - public IMessage onMessage(PacketSendClientPlayerInfo 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); - } +public class PacketSendClientPlayerInfo implements IMessage, + IMessageHandler { + public NBTTagCompound tagCompound; + + /** + * @param tagCompound + */ + public PacketSendClientPlayerInfo(NBTTagCompound tagCompound) { + this.tagCompound = tagCompound; + } + + /** + * + */ + public PacketSendClientPlayerInfo() { + } + + /** + * @param message + * @param ctx + * @return + */ + @Override + public IMessage onMessage(PacketSendClientPlayerInfo 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); + } } -- cgit v1.2.3