Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package lavaInfusionPackets;
- import io.netty.buffer.ByteBuf;
- import cpw.mods.fml.common.network.simpleimpl.IMessage;
- public class MagmaChargePacket implements IMessage
- {
- public int magmaFoundationChargeAmount;
- public MagmaChargePacket(){}
- public MagmaChargePacket(int num)
- {
- this.magmaFoundationChargeAmount = num;
- }
- @Override
- public void fromBytes(ByteBuf buf)
- {
- this.magmaFoundationChargeAmount = buf.readInt();
- }
- @Override
- public void toBytes(ByteBuf buf)
- {
- buf.writeInt(magmaFoundationChargeAmount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment