List of usage examples for io.netty.buffer ByteBuf readInt
public abstract int readInt();
From source file:buildcraftAdditions.networking.MessageKEBT2.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 . c o m*/ z = buf.readInt(); configuration = new int[6]; for (int teller = 0; teller < 6; teller++) configuration[teller] = buf.readInt(); partOfMultiBlock = buf.readBoolean(); isMaster = buf.readBoolean(); energy = buf.readInt(); masterX = buf.readInt(); masterY = buf.readInt(); masterZ = buf.readInt(); energyState = buf.readInt(); length = buf.readInt(); owner = ""; for (int teller = 0; teller < length; teller++) owner += buf.readChar(); }
From source file:buildcraftAdditions.networking.MessageSelfDestruct.java
License:GNU General Public License
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt(); z = buf.readInt(); }
From source file:buildcraftAdditions.networking.MessageSemiAutomaticDuster.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.id = buf.readInt(); this.meta = buf.readInt(); }
From source file:buildcraftAdditions.networking.MessageWidgetUpdate.java
License:LGPL
@Override public void fromBytes(ByteBuf buf) { x = buf.readInt(); y = buf.readInt(); z = buf.readInt(); id = buf.readInt(); value = buf.readInt(); }
From source file:buildcraftAdditions.tileEntities.Bases.TileBaseDuster.java
License:GNU General Public License
@Override public void readFromByteBuff(ByteBuf buf) { progress = buf.readInt(); inventory.readFromByteBuff(buf); }
From source file:buildcraftAdditions.tileEntities.Bases.TileKineticEnergyBufferBase.java
License:GNU General Public License
@Override public void readFromByteBuff(ByteBuf buf) { energy = buf.readInt(); configuration.readFromByteBuff(buf); owner = PlayerUtils.readFromByteBuff(buf); }
From source file:buildcraftAdditions.tileEntities.Bases.TileMachineBase.java
License:GNU General Public License
@Override public void readFromByteBuff(ByteBuf buf) { energy = buf.readInt(); }
From source file:buildcraftAdditions.tileEntities.TileHeatedFurnace.java
License:GNU General Public License
@Override public void readFromByteBuff(ByteBuf buf) { progress = buf.readInt(); isCooking = buf.readBoolean();//w w w . j a v a2 s . com upgrades.readFromByteBuff(buf); configuration.readFromByteBuff(buf); }
From source file:buildcraftAdditions.tileEntities.TileKEBT2.java
License:GNU General Public License
@Override public void readFromByteBuff(ByteBuf buf) { super.readFromByteBuff(buf); energyState = buf.readInt(); data.readFromByteBuff(buf);//from ww w .j av a2s. c o m }
From source file:buildcraftAdditions.tileEntities.TileKineticDuster.java
License:GNU General Public License
@Override public void readFromByteBuff(ByteBuf buf) { super.readFromByteBuff(buf); progressStage = buf.readInt(); }