Example usage for io.netty.buffer ByteBuf readBoolean

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

Introduction

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

Prototype

public abstract boolean readBoolean();

Source Link

Document

Gets a boolean at the current readerIndex and increases the readerIndex by 1 in this buffer.

Usage

From source file:buildcraft.transport.network.PacketPowerUpdate.java

License:Minecraft Mod Public

@Override
public void readData(ByteBuf data) {
    super.readData(data);
    displayPower = new short[] { 0, 0, 0, 0, 0, 0 };
    overload = data.readBoolean();
    for (int i = 0; i < displayPower.length; i++) {
        displayPower[i] = data.readByte();
    }// ww w. j ava  2  s  .c om
}

From source file:buildcraft.transport.PipeRenderState.java

License:Minecraft Mod Public

@Override
public void readData(ByteBuf data) {
    isGateLit = data.readBoolean();
    isGatePulsing = data.readBoolean();/*w  w  w  .j  a v a 2 s. c o m*/
    gateIconIndex = data.readInt();
    pipeConnectionMatrix.readData(data);
    textureMatrix.readData(data);
    wireMatrix.readData(data);
    facadeMatrix.readData(data);
    plugMatrix.readData(data);
    robotStationMatrix.readData(data);
}

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

License:Minecraft Mod Public

public void readData(ByteBuf data) {
    for (int i = 0; i < ForgeDirection.VALID_DIRECTIONS.length; i++) {
        isGateLit[i] = data.readBoolean();
        isGatePulsing[i] = data.readBoolean();
        isGateExists[i] = data.readBoolean();
        gateIconIndex[i] = data.readInt();
    }/*from   ww  w. j a  v  a  2 s.  com*/
}

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.MessageFlightSync.java

License:GNU General Public License

@Override
public void fromBytes(ByteBuf buf) {
    wantsToFly = buf.readBoolean();
    wantsToMove = buf.readBoolean();
}

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.MessageKEBT2.java

License:GNU General Public License

@Override
public void fromBytes(ByteBuf buf) {
    x = buf.readInt();//from   ww  w.ja va  2s . c  o  m
    y = buf.readInt();
    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.MessagePipeColoringTool.java

License:GNU General Public License

@Override
public void fromBytes(ByteBuf buf) {
    color = buf.readByte();
    sortMode = buf.readBoolean();
}

From source file:buildcraftAdditions.networking.MessageToolUpgrades.java

License:GNU General Public License

@Override
public void fromBytes(ByteBuf buffer) {
    this.chainsaw = buffer.readBoolean();
    this.digger = buffer.readBoolean();
    this.drill = buffer.readBoolean();
    this.hoe = buffer.readBoolean();
    this.chainsawEnabled = buffer.readBoolean();
    this.diggerEnabled = buffer.readBoolean();
    this.drillEnabled = buffer.readBoolean();
    this.hoeEnabled = buffer.readBoolean();
}

From source file:buildcraftAdditions.tileEntities.Bases.TileCoilBase.java

License:GNU General Public License

@Override
public void readFromByteBuff(ByteBuf buf) {
    shouldHeat = buf.readBoolean();
}