List of usage examples for io.netty.buffer ByteBuf writeBoolean
public abstract ByteBuf writeBoolean(boolean value);
From source file:buildcraftAdditions.networking.MessageKEBT2.java
License:GNU General Public License
@Override public void toBytes(ByteBuf buf) { buf.writeInt(x);//from w w w. ja v a 2s .c o m buf.writeInt(y); buf.writeInt(z); for (int teller = 0; teller < 6; teller++) buf.writeInt(configuration[teller]); buf.writeBoolean(partOfMultiBlock); buf.writeBoolean(isMaster); buf.writeInt(energy); buf.writeInt(masterX); buf.writeInt(masterY); buf.writeInt(masterZ); buf.writeInt(energyState); buf.writeInt(length); char[] letters = owner.toCharArray(); for (char letter : letters) { buf.writeChar(letter); } }
From source file:buildcraftAdditions.networking.MessagePipeColoringTool.java
License:GNU General Public License
@Override public void toBytes(ByteBuf buf) { buf.writeByte(color); buf.writeBoolean(sortMode); }
From source file:buildcraftAdditions.networking.MessageToolUpgrades.java
License:GNU General Public License
@Override public void toBytes(ByteBuf buffer) { buffer.writeBoolean(chainsaw); buffer.writeBoolean(digger);//from w ww. j a va 2 s.co m buffer.writeBoolean(drill); buffer.writeBoolean(hoe); }
From source file:buildcraftAdditions.tileEntities.Bases.TileCoilBase.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeBoolean(shouldHeat); }
From source file:buildcraftAdditions.tileEntities.TileCoolingTower.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeBoolean(valve); buf.writeFloat(heat);//from ww w . j a v a 2 s .co m input.writeToByteBuff(buf); output.writeToByteBuff(buf); coolant.writeToByteBuff(buf); data.writeToByteBuff(buf); upgrades.writeToByteBuff(buf); }
From source file:buildcraftAdditions.tileEntities.TileFluidicCompressor.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { super.writeToByteBuff(buf); buf.writeBoolean(fill); tank.writeToByteBuff(buf);/*from ww w. jav a 2 s . com*/ inventory.writeToByteBuff(buf); }
From source file:buildcraftAdditions.tileEntities.TileHeatedFurnace.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeInt(progress);//from w w w . j a v a 2 s .co m buf.writeBoolean(isCooking); upgrades.writeToByteBuff(buf); configuration.writeToByteBuff(buf); }
From source file:buildcraftAdditions.tileEntities.TileRefinery.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeBoolean(valve); buf.writeInt(currentHeat);/*from ww w.ja va 2s . c om*/ 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.varHelpers.MultiBlockData.java
License:GNU General Public License
@Override public void writeToByteBuff(ByteBuf buf) { buf.writeBoolean(isMaster); buf.writeBoolean(partOfMultiBlock);// w w w.ja v a2s. c o m buf.writeInt(masterX); buf.writeInt(masterY); buf.writeInt(masterZ); }
From source file:buildcraftAdditions.utils.MultiBlockData.java
License:GNU General Public License
@Override public ByteBuf writeToByteBuff(ByteBuf buf) { buf.writeBoolean(isMaster); buf.writeBoolean(partOfMultiBlock);/* w ww.j a va 2 s .c o m*/ buf.writeInt(masterX); buf.writeInt(masterY); buf.writeInt(masterZ); return buf; }