summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java')
-rwxr-xr-x[-rw-r--r--]src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java91
1 files changed, 44 insertions, 47 deletions
diff --git a/src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java b/src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java
index c8bf0aa..21000de 100644..100755
--- 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<PacketSendClientPlayerInfo, IMessage>
-{
- 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<PacketSendClientPlayerInfo, IMessage> {
+ 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);
+ }
}