summaryrefslogtreecommitdiff
path: root/src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2018-05-24 15:50:07 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2018-05-24 15:50:07 -0400
commit4f7ad220df0438b6f3382110577b53f29da46453 (patch)
tree07d5e7c812721753cdbe3df7226dad5dc3802c29 /src/main/java/darkknight/jewelrycraft/network/PacketSendClientPlayerInfo.java
parent01c8701b68986ccfa83e902515716838d6829311 (diff)
Update of all changes
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);
+ }
}