List of usage examples for io.netty.buffer ByteBuf readBoolean
public abstract boolean readBoolean();
From source file:sqr.entity.EntityOtherQueen.java
License:Open Source License
@Override public void readSpawnData(ByteBuf additionalData) { isHostile = additionalData.readBoolean(); friendlySkinIndex = additionalData.readInt(); setSize(1.4F, 1.8F);/*from w w w. jav a 2 s . com*/ }
From source file:thaumic.tinkerer.common.network.packet.kami.PacketWarpGateButton.java
License:Creative Commons License
@Override public void fromBytes(ByteBuf byteBuf) { super.fromBytes(byteBuf); locked = byteBuf.readBoolean(); }
From source file:thaumic.tinkerer.common.network.packet.PacketMobMagnetButton.java
License:Creative Commons License
@Override public void fromBytes(ByteBuf byteBuf) { super.fromBytes(byteBuf); adult = byteBuf.readBoolean(); }
From source file:thaumic.tinkerer.common.network.packet.PacketTabletButton.java
License:Creative Commons License
@Override public void fromBytes(ByteBuf byteBuf) { super.fromBytes(byteBuf); leftClick = byteBuf.readBoolean(); redstone = byteBuf.readBoolean();//from w w w . j av a 2 s .c o m }
From source file:totemic_commons.pokefenn.network.block.music.DrumPacket.java
License:MIT License
@Override public void decodeInto(ChannelHandlerContext ctx, ByteBuf buffer) { x = buffer.readInt();/*from ww w.j a v a 2s .c om*/ y = buffer.readInt(); z = buffer.readInt(); canPlay = buffer.readBoolean(); }
From source file:totemic_commons.pokefenn.network.client.PacketWindChime.java
License:MIT License
@Override public void fromBytes(ByteBuf buf) { this.x = buf.readInt(); this.y = buf.readInt(); this.z = buf.readInt(); this.isPlaying = buf.readBoolean(); }
From source file:valkyrienwarfare.addon.control.network.EntityFixMessage.java
License:Open Source License
@Override public void fromBytes(ByteBuf buf) { shipId = buf.readInt();// w w w. j a v a 2s . c o m entityUUID = buf.readInt(); isFixing = buf.readBoolean(); if (isFixing) { localPosition = new Vector(buf); } }
From source file:vazkii.botania.common.entity.EntityDoppleganger.java
License:Open Source License
@Override @SideOnly(Side.CLIENT)/*w w w. ja va2 s .c o m*/ public void readSpawnData(ByteBuf additionalData) { playerCount = additionalData.readInt(); hardMode = additionalData.readBoolean(); source = BlockPos.fromLong(additionalData.readLong()); long msb = additionalData.readLong(); long lsb = additionalData.readLong(); bossInfoUUID = new UUID(msb, lsb); Minecraft.getMinecraft().getSoundHandler().playSound(new DopplegangerMusic(this)); }
From source file:XFactHD.rfutilities.common.net.PacketWantThroughput.java
License:Open Source License
@Override public void fromBytes(ByteBuf buf) { this.x = buf.readInt(); this.y = buf.readInt(); this.z = buf.readInt(); update = buf.readBoolean(); }
From source file:zeldaswordskills.entity.mobs.EntityDekuFire.java
License:Open Source License
@Override public void readSpawnData(ByteBuf buffer) { has_gland = buffer.readBoolean(); }