List of usage examples for io.netty.buffer ByteBuf writeBoolean
public abstract ByteBuf writeBoolean(boolean value);
From source file:valkyrienwarfare.addon.control.network.EntityFixMessage.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeInt(shipId);/* w w w .j ava 2 s .c o m*/ buf.writeInt(entityUUID); buf.writeBoolean(isFixing); if (isFixing) { localPosition.writeToByteBuf(buf); } }
From source file:vazkii.botania.common.entity.EntityDoppleganger.java
License:Open Source License
@Override public void writeSpawnData(ByteBuf buffer) { buffer.writeInt(playerCount);/* ww w. ja va 2s . c o m*/ buffer.writeBoolean(hardMode); buffer.writeLong(source.toLong()); buffer.writeLong(bossInfoUUID.getMostSignificantBits()); buffer.writeLong(bossInfoUUID.getLeastSignificantBits()); }
From source file:XFactHD.rfutilities.common.net.PacketWantThroughput.java
License:Open Source License
@Override public void toBytes(ByteBuf buf) { buf.writeInt(x); buf.writeInt(y); buf.writeInt(z); buf.writeBoolean(update); }
From source file:zeldaswordskills.entity.mobs.EntityDekuFire.java
License:Open Source License
@Override public void writeSpawnData(ByteBuf buffer) { buffer.writeBoolean(has_gland); }
From source file:zeldaswordskills.entity.projectile.EntityMagicSpell.java
License:Open Source License
@Override public void writeSpawnData(ByteBuf buffer) { super.writeSpawnData(buffer); buffer.writeInt(type.ordinal());/*from ww w . j a v a 2 s .c o m*/ buffer.writeFloat(radius); buffer.writeBoolean(spawnParticles); }