diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-02-21 21:31:16 +0000 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-02-21 21:31:16 +0000 |
| commit | 420faddca46e70e3a70def168fb4e452ef193b0d (patch) | |
| tree | 247e334012e4bf9e4fa6d42718bf601ce6bd42d9 /java/darkknight/jewelrycraft/network/PacketSendLiquidData.java | |
| parent | 3f4c717de5ebc9b942d65ae45ac87c43bdf8a31b (diff) | |
Added just a butt ton of stuff, also thanks to pau101 for helping me with the Hand Pedestal animation :)
Diffstat (limited to 'java/darkknight/jewelrycraft/network/PacketSendLiquidData.java')
| -rw-r--r-- | java/darkknight/jewelrycraft/network/PacketSendLiquidData.java | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/java/darkknight/jewelrycraft/network/PacketSendLiquidData.java b/java/darkknight/jewelrycraft/network/PacketSendLiquidData.java index 436daba..bad14e7 100644 --- a/java/darkknight/jewelrycraft/network/PacketSendLiquidData.java +++ b/java/darkknight/jewelrycraft/network/PacketSendLiquidData.java @@ -1,22 +1,28 @@ package darkknight.jewelrycraft.network; -import net.minecraft.block.Block; +import io.netty.buffer.ByteBuf; import net.minecraft.client.Minecraft; 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.JewelrycraftMod; -import darkknight.jewelrycraft.block.BlockMoltenMetal; -import io.netty.buffer.ByteBuf; public class PacketSendLiquidData implements IMessage, IMessageHandler<PacketSendLiquidData, IMessage> { int dimID, x, y, z, itemID, itemMeta, color; + /** + * + */ public PacketSendLiquidData() - { - } + {} + /** + * @param packet + * @param itemID + * @param itemMeta + * @param color + */ public PacketSendLiquidData(PacketRequestLiquidData packet, int itemID, int itemMeta, int color) { dimID = packet.dimID; @@ -28,6 +34,15 @@ public class PacketSendLiquidData implements IMessage, IMessageHandler<PacketSen this.color = color; } + /** + * @param dimID + * @param x + * @param y + * @param z + * @param itemID + * @param itemMeta + * @param color + */ public PacketSendLiquidData(int dimID, int x, int y, int z, int itemID, int itemMeta, int color) { this.dimID = dimID; @@ -39,6 +54,9 @@ public class PacketSendLiquidData implements IMessage, IMessageHandler<PacketSen this.color = color; } + /** + * @param buf + */ @Override public void fromBytes(ByteBuf buf) { @@ -51,6 +69,9 @@ public class PacketSendLiquidData implements IMessage, IMessageHandler<PacketSen color = buf.readInt(); } + /** + * @param buf + */ @Override public void toBytes(ByteBuf buf) { @@ -63,14 +84,17 @@ public class PacketSendLiquidData implements IMessage, IMessageHandler<PacketSen buf.writeInt(color); } + /** + * @param message + * @param ctx + * @return + */ @Override public IMessage onMessage(PacketSendLiquidData message, MessageContext ctx) { JewelrycraftMod.clientData.setString(message.x + " " + message.y + " " + message.z + " " + message.dimID, message.itemID + ":" + message.itemMeta + ":" + message.color); - - Block block = Minecraft.getMinecraft().theWorld.getBlock(message.x, message.y, message.z); + Minecraft.getMinecraft().theWorld.getBlock(message.x, message.y, message.z); Minecraft.getMinecraft().theWorld.markBlockForUpdate(message.x, message.y, message.z); - return null; } } |
