List of usage examples for io.netty.buffer ByteBuf readInt
public abstract int readInt();
From source file:buildcraftAdditions.api.networking.MessageByteBuff.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt();//from w w w.ja v a2 s . c om z = buf.readInt(); if (FMLClientHandler.instance().getClient().theWorld != null) { TileEntity entity = FMLClientHandler.instance().getClient().theWorld.getTileEntity(x, y, z); if (entity instanceof ISynchronizedTile) { tile = (ISynchronizedTile) entity; tile.readFromByteBuff(buf); } } }
From source file:buildcraftAdditions.networking.MessageByteBuff.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt();/*from www .j av a2 s . c o m*/ z = buf.readInt(); TileEntity entity = FMLClientHandler.instance().getClient().theWorld.getTileEntity(x, y, z); if (entity instanceof ISyncronizedTile) { ((ISyncronizedTile) entity).readFromByteBuff(buf); } }
From source file:buildcraftAdditions.networking.MessageCoilStatus.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt(); z = buf.readInt(); shouldHeat = buf.readBoolean(); }
From source file:buildcraftAdditions.networking.MessageConfiguration.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt(); z = buf.readInt(); configuration.readFromByteBuff(buf); }
From source file:buildcraftAdditions.networking.MessageDusterKinetic.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { this.x = buf.readInt(); this.y = buf.readInt(); this.z = buf.readInt(); this.progressStage = buf.readInt(); this.id = buf.readInt(); this.meta = buf.readInt(); }
From source file:buildcraftAdditions.networking.MessageFluidicCompressorA.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt(); z = buf.readInt(); fill = buf.readBoolean(); }
From source file:buildcraftAdditions.networking.MessageFluidicCompressorC.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt();/*from w ww. j a va2 s.c om*/ z = buf.readInt(); fluidID = buf.readInt(); amount = buf.readInt(); }
From source file:buildcraftAdditions.networking.MessageHeatedFurnaceProgress.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt(); z = buf.readInt(); progress = buf.readInt(); }
From source file:buildcraftAdditions.networking.MessageKEBConfiguration.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt();/*ww w .j a va2s.c o m*/ z = buf.readInt(); configuration = new int[6]; for (int teller = 0; teller < 6; teller++) configuration[teller] = buf.readInt(); }
From source file:buildcraftAdditions.networking.MessageKEBT1.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt();//from w w w . j a v a 2 s . co m z = buf.readInt(); energy = buf.readInt(); configuration = new int[6]; for (int teller = 0; teller < 6; teller++) configuration[teller] = buf.readInt(); length = buf.readInt(); owner = ""; for (int teller = 0; teller < length; teller++) owner += buf.readChar(); }