Example usage for com.google.common.io ByteArrayDataInput readBoolean

List of usage examples for com.google.common.io ByteArrayDataInput readBoolean

Introduction

In this page you can find the example usage for com.google.common.io ByteArrayDataInput readBoolean.

Prototype

@Override
    boolean readBoolean();

Source Link

Usage

From source file:com.fr3gu.letsmod.entity.EntitySpaceship.java

@Override
public void readSpawnData(ByteArrayDataInput data) {
    charged = data.readBoolean();
}

From source file:de.mineformers.robots.network.packet.PacketFactoryController.java

@Override
public void read(ByteArrayDataInput in) {
    super.read(in);
    orientation = in.readInt();/*from w ww.j  a  v a  2 s.  com*/
    validMultiblock = in.readBoolean();
    selectedModule = in.readUTF();
}

From source file:de.mineformers.robots.network.packet.PacketFactoryEnergy.java

@Override
public void read(ByteArrayDataInput in) {
    super.read(in);
    energy = in.readInt();//from  w w w. j a v a  2s  . c  o m
    currentRate = in.readInt();
    boolean available = in.readBoolean();
    if (available) {
        controllerPos = new Vector3(in.readInt(), in.readInt(), in.readInt());
    }
}

From source file:ocelot.mods.qp2.TileMiningWellPlus.java

@Override
protected void C_recievePacket(byte pattern, ByteArrayDataInput data, EntityPlayer ep) {
    super.C_recievePacket(pattern, data, ep);
    switch (pattern) {
    case PacketHandler.StC_NOW:
        this.working = data.readBoolean();
        G_renew_powerConfigure();//ww w  .  j a  va 2  s . c  om
        this.worldObj.markBlockForRenderUpdate(this.xCoord, this.yCoord, this.zCoord);
        break;
    }
}

From source file:nxminetilities.network.MultilightPacket.java

@Override
public void read(ByteArrayDataInput in) throws ProtocolException {
    x = in.readInt();/*  w  w w  .  ja  v a2s .  c o  m*/
    y = in.readInt();
    z = in.readInt();
    lightColourRed = in.readDouble();
    lightColourGreen = in.readDouble();
    lightColourBlue = in.readDouble();
    lightEnabled = in.readBoolean();
}

From source file:com.xlogisticzz.learningModding.entities.EntitySpaceship.java

@Override
public void readSpawnData(ByteArrayDataInput data) {

    this.charged = data.readBoolean();
}

From source file:micdoodle8.mods.galacticraft.core.tile.GCCoreTileEntityAirLockController.java

@Override
public void handlePacketData(INetworkManager network, int type, Packet250CustomPayload packet,
        EntityPlayer player, ByteArrayDataInput data) {
    try {//from w w  w .  jav  a  2s.co  m
        this.active = data.readBoolean();
        this.ownerName = data.readUTF();
        this.redstoneActivation = data.readBoolean();
        this.playerDistanceActivation = data.readBoolean();
        this.playerDistanceSelection = data.readInt();
        this.playerNameMatches = data.readBoolean();
        this.playerToOpenFor = data.readUTF();
        this.invertSelection = data.readBoolean();
        this.horizontalModeEnabled = data.readBoolean();
    } catch (final Exception e) {
        e.printStackTrace();
    }
}

From source file:org.yogpstop.qp.TileMiningCore.java

@Override
public void C_recievePacket(byte pattern, ByteArrayDataInput data, EntityPlayer ep) {
    switch (pattern) {
    case StC_OPENGUI_FORTUNE:
        this.fortuneInclude = data.readBoolean();
        this.fortuneList.clear();
        int fsize = data.readInt();
        for (int i = 0; i < fsize; i++) {
            this.fortuneList.add(data.readLong());
        }//from w w w .ja va2  s.c o  m
        ep.openGui(QuarryPlus.instance, QuarryPlus.guiIdFList, this.worldObj, this.xCoord, this.yCoord,
                this.zCoord);
        break;
    case StC_OPENGUI_SILKTOUCH:
        this.silktouchInclude = data.readBoolean();
        this.silktouchList.clear();
        int ssize = data.readInt();
        for (int i = 0; i < ssize; i++) {
            this.silktouchList.add(data.readLong());
        }
        ep.openGui(QuarryPlus.instance, QuarryPlus.guiIdSList, this.worldObj, this.xCoord, this.yCoord,
                this.zCoord);
        break;
    }
}

From source file:micdoodle8.mods.galacticraft.core.tile.GCCoreTileEntityOxygenSealer.java

@Override
public void readPacket(ByteArrayDataInput data) {
    if (this.worldObj.isRemote) {
        this.setOxygenStored(data.readFloat());
        this.setEnergyStored(data.readFloat());
        this.disabled = data.readBoolean();
        this.sealed = data.readBoolean();
        this.calculatingSealed = data.readBoolean();
    }//from   w  w w.  j a v a 2 s  . c  o m
}

From source file:micdoodle8.mods.galacticraft.core.tile.GCCoreTileEntityOxygenCompressor.java

@Override
public void readPacket(ByteArrayDataInput data) {
    if (this.worldObj.isRemote) {
        this.setOxygenStored(data.readFloat());
        this.setEnergyStored(data.readFloat());
        this.disabled = data.readBoolean();
    }//ww  w.ja  va2s.  co m
}