mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-19 19:59:58 +00:00
Begin SimpleImpl upgrade.
This commit is contained in:
1 parent
d000c53811
commit
d16b3ddd6b
47 files changed
+242
-550
No files matched your search
@@ -6,10 +6,10 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import crazypants.enderio.machine.tank.TileTank;
|
||||
import crazypants.enderio.network.AbstractPacketTileEntity;
|
||||
import crazypants.enderio.network.MessageTileEntity;
|
||||
import crazypants.enderio.network.NetworkUtil;
|
||||
|
||||
public class PacketCurrentTask extends AbstractPacketTileEntity<AbstractPoweredTaskEntity> {
|
||||
public class PacketCurrentTask extends MessageTileEntity<AbstractPoweredTaskEntity> {
|
||||
|
||||
private NBTTagCompound nbtRoot;
|
||||
|
||||
@@ -27,14 +27,14 @@ public class PacketCurrentTask extends AbstractPacketTileEntity<AbstractPoweredT
|
||||
}
|
||||
|
||||
@Override
|
||||
public void encode(ChannelHandlerContext ctx, ByteBuf buf) {
|
||||
super.encode(ctx, buf);
|
||||
public void toBytes(ByteBuf buf) {
|
||||
super.toBytes(buf);
|
||||
NetworkUtil.writeNBTTagCompound(nbtRoot, buf);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void decode(ChannelHandlerContext ctx, ByteBuf buf) {
|
||||
super.decode(ctx, buf);
|
||||
public void fromBytes(ByteBuf buf) {
|
||||
super.fromBytes(buf);
|
||||
nbtRoot = NetworkUtil.readNBTTagCompound(buf);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user