Example usage for io.netty.buffer ByteBuf writeInt

List of usage examples for io.netty.buffer ByteBuf writeInt

Introduction

In this page you can find the example usage for io.netty.buffer ByteBuf writeInt.

Prototype

public abstract ByteBuf writeInt(int value);

Source Link

Document

Sets the specified 32-bit integer at the current writerIndex and increases the writerIndex by 4 in this buffer.

Usage

From source file:buildcraft.transport.PipeRenderState.java

License:Minecraft Mod Public

@Override
public void writeData(ByteBuf data) {
    data.writeBoolean(isGateLit);//from ww  w. j  av a2s  .  c o  m
    data.writeBoolean(isGatePulsing);
    data.writeInt(gateIconIndex);
    pipeConnectionMatrix.writeData(data);
    textureMatrix.writeData(data);
    wireMatrix.writeData(data);
    facadeMatrix.writeData(data);
    plugMatrix.writeData(data);
    robotStationMatrix.writeData(data);
}

From source file:buildcraft.transport.pipes.PipeFluidsWood.java

License:Minecraft Mod Public

@Override
public void writeData(ByteBuf data) {
    data.writeInt(liquidToExtract);
}

From source file:buildcraft.transport.utils.GateMatrix.java

License:Minecraft Mod Public

public void writeData(ByteBuf data) {
    for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
        data.writeBoolean(isGateLit[i]);
        data.writeBoolean(isGatePulsing[i]);
        data.writeBoolean(isGateExists[i]);
        data.writeInt(gateIconIndex[i]);
    }/*from  www .  j av a 2 s.  com*/
}

From source file:buildcraftAdditions.api.networking.MessageByteBuff.java

License:GNU General Public License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(x);
    buf.writeInt(y);
    buf.writeInt(z);
    tile.writeToByteBuff(buf);
}

From source file:buildcraftAdditions.networking.MessageByteBuff.java

License:GNU General Public License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(x);
    buf.writeInt(y);
    buf.writeInt(z);
    object.writeToByteBuff(buf);
}

From source file:buildcraftAdditions.networking.MessageCoilStatus.java

License:GNU General Public License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(x);
    buf.writeInt(y);
    buf.writeInt(z);
    buf.writeBoolean(shouldHeat);
}

From source file:buildcraftAdditions.networking.MessageConfiguration.java

License:GNU General Public License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(x);
    buf.writeInt(y);
    buf.writeInt(z);
    configuration.writeToByteBuff(buf);
}

From source file:buildcraftAdditions.networking.MessageDusterKinetic.java

License:GNU General Public License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(x);
    buf.writeInt(y);/*from  w w  w.j a v a2  s  .  co  m*/
    buf.writeInt(z);
    buf.writeInt(progressStage);
    buf.writeInt(id);
    buf.writeInt(meta);
}

From source file:buildcraftAdditions.networking.MessageFluidicCompressorA.java

License:GNU General Public License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(x);
    buf.writeInt(y);
    buf.writeInt(z);
    buf.writeBoolean(fill);
}

From source file:buildcraftAdditions.networking.MessageFluidicCompressorC.java

License:GNU General Public License

@Override
public void toBytes(ByteBuf buf) {
    buf.writeInt(x);
    buf.writeInt(y);
    buf.writeInt(z);
    buf.writeInt(fluidID);
    buf.writeInt(amount);
}