List of usage examples for io.netty.buffer ByteBuf writeInt
public abstract ByteBuf writeInt(int value);
From source file:buildcraftAdditions.tileEntities.TileHeatedFurnace.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeInt(progress); buf.writeBoolean(isCooking);//from w ww . java2 s. c o m upgrades.writeToByteBuff(buf); configuration.writeToByteBuff(buf); }
From source file:buildcraftAdditions.tileEntities.TileKEBT2.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { super.writeToByteBuff(buf); buf.writeInt(energyState); data.writeToByteBuff(buf);/*from w ww. j a va 2s . com*/ }
From source file:buildcraftAdditions.tileEntities.TileKineticDuster.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { super.writeToByteBuff(buf); buf.writeInt(progressStage); }
From source file:buildcraftAdditions.tileEntities.TileMechanicalDuster.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { super.writeToByteBuff(buf); buf.writeInt(energy); buf.writeInt(progressStage); }
From source file:buildcraftAdditions.tileEntities.TileRefinery.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeBoolean(valve);/*from w w w . j a v a2 s . co m*/ buf.writeInt(currentHeat); buf.writeInt(lastRequiredHeat); buf.writeInt(energyCost); buf.writeInt(requiredHeat); ByteBufUtils.writeUTF8String(buf, inputFluid); ByteBufUtils.writeUTF8String(buf, outputFluid); input.writeToByteBuff(buf); output.writeToByteBuff(buf); data.writeToByteBuff(buf); upgrades.writeToByteBuff(buf); }
From source file:buildcraftAdditions.tileEntities.TileSemiAutomaticDuster.java
License:GNU General Public License
@Override public ByteBuf writeToByteBuff(ByteBuf buf) { buf = super.writeToByteBuff(buf); int id = getStackInSlot(0) == null ? -1 : Item.getIdFromItem(getStackInSlot(0).getItem()); int meta = getStackInSlot(0) == null ? -1 : getStackInSlot(0).getItemDamage(); buf.writeInt(id); buf.writeInt(meta);//w ww . jav a2s . co m return buf; }
From source file:buildcraftAdditions.tileEntities.varHelpers.MultiBlockData.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeBoolean(isMaster);//from ww w .jav a2s.c o m buf.writeBoolean(partOfMultiBlock); buf.writeInt(masterX); buf.writeInt(masterY); buf.writeInt(masterZ); }
From source file:buildcraftAdditions.tileEntities.varHelpers.SideConfiguration.java
License:GNU General Public License
@Override public ByteBuf writeToByteBuff(ByteBuf buf) { for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS) { buf.writeInt(configurations[direction.ordinal()].ordinal()); buf.writeInt(priorities[direction.ordinal()].ordinal()); }/*from www . j a v a2s .c o m*/ return buf; }
From source file:buildcraftAdditions.utils.fluids.Tank.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeInt(fluid != null ? fluid.fluidID : -1); buf.writeInt(getFluidAmount());/* w w w .j a va 2 s . com*/ ByteBufUtils.writeTag(buf, fluid != null ? fluid.tag : null); }
From source file:buildcraftAdditions.utils.MultiBlockData.java
License:GNU General Public License
@Override public ByteBuf writeToByteBuff(ByteBuf buf) { buf.writeBoolean(isMaster);//from w w w .ja va2 s .c o m buf.writeBoolean(partOfMultiBlock); buf.writeInt(masterX); buf.writeInt(masterY); buf.writeInt(masterZ); return buf; }