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:com.heliosapm.ohcrs.core.AbstractDriverCodec.java

License:Apache License

/**
 * {@inheritDoc}/*ww  w . j a va  2  s .co  m*/
 * @see com.heliosapm.ohcrs.core.DriverCodec#readBoolean(io.netty.buffer.ByteBuf)
 */
@Override
public Boolean readBoolean(final ByteBuf b) throws SQLException {
    if (checkNull(b))
        return null;
    return b.readBoolean();
}

From source file:com.heliosapm.ohcrs.core.AbstractDriverCodec.java

License:Apache License

/**
 * {@inheritDoc}/*from w w  w. jav a  2s .  c  om*/
 * @see com.heliosapm.ohcrs.core.DriverCodec#readboolean(io.netty.buffer.ByteBuf)
 */
@Override
public boolean readboolean(final ByteBuf b) throws SQLException {
    if (checkNull(b))
        return false;
    return b.readBoolean();
}

From source file:com.kaijin.AdvPowerMan.tileentities.TEBatteryStation.java

License:Open Source License

@SideOnly(Side.CLIENT)
@Override/*from ww w.  j a va 2  s  .c  o  m*/
public void receiveDescriptionData(int packetID, ByteBuf stream) {
    boolean b = doingWork;
    // try
    // {
    b = stream.readBoolean();
    /*
     * } catch (IOException e) { logDescPacketError(e); return; }
     */
    doingWork = b;
    worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}

From source file:com.kaijin.AdvPowerMan.tileentities.TEChargingBench.java

License:Open Source License

@SideOnly(Side.CLIENT)
@Override//from  ww w . j  a v a 2  s.  co  m
public void receiveDescriptionData(int packetID, ByteBuf stream) {
    final int a;
    final boolean b;
    // try
    // {
    a = stream.readInt();
    b = stream.readBoolean();
    /*
     * } catch (IOException e) { logDescPacketError(e); return; }
     */
    chargeLevel = a;
    doingWork = b;
    worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}

From source file:com.kaijin.AdvPowerMan.tileentities.TEStorageMonitor.java

License:Open Source License

@SideOnly(Side.CLIENT)
@Override//from   ww w  . j  av  a 2s.co m
public void receiveDescriptionData(int packetID, ByteBuf stream) {
    final int a;
    final boolean b;
    final boolean c;
    // try
    // {
    a = stream.readInt();
    b = stream.readBoolean();
    c = stream.readBoolean();
    /*
     * } catch (IOException e) { logDescPacketError(e); return; }
     */

    chargeLevel = a;
    isPowering = b;
    blockState = c;
    worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
}

From source file:com.kegare.caveworld.network.RegenerateMessage.java

License:Minecraft Mod Public

@Override
public void fromBytes(ByteBuf buffer) {
    backup = buffer.readBoolean();
}

From source file:com.kegare.frozenland.core.Config.java

License:Minecraft Mod Public

@Override
public void fromBytes(ByteBuf buf) {
    dimensionFrozenland = buf.readInt();
    biomeFrozenland = buf.readInt();/*ww w  .  j  a  v a  2  s .  c o m*/
    generateCaves = buf.readBoolean();
    generateRavine = buf.readBoolean();
    generateMineshaft = buf.readBoolean();
    generateVillage = buf.readBoolean();
    generateDungeons = buf.readBoolean();
}

From source file:com.minestellar.core.network.message.MessageAntennaOnline.java

License:Open Source License

@Override
public void fromBytes(ByteBuf buf) {
    this.isOnline = buf.readBoolean();
    this.x = buf.readInt();
    this.y = buf.readInt();
    this.z = buf.readInt();
}

From source file:com.mrcrayfish.furniture.network.message.MessageFillBasin.java

License:Open Source License

@Override
public void fromBytes(ByteBuf buf) {
    this.hasWater = buf.readBoolean();
    this.x = buf.readInt();
    this.y = buf.readInt();
    this.z = buf.readInt();
}

From source file:com.mrcrayfish.furniture.network.message.MessageMineBayBuy.java

License:Open Source License

@Override
public void fromBytes(ByteBuf buf) {
    this.itemNum = buf.readInt();
    this.x = buf.readInt();
    this.y = buf.readInt();
    this.z = buf.readInt();
    this.shouldClear = buf.readBoolean();
}