List of usage examples for io.netty.buffer ByteBuf writeFloat
public abstract ByteBuf writeFloat(float value);
From source file:pneumaticCraft.common.network.PacketPlaySound.java
License:LGPL
@Override public void toBytes(ByteBuf buffer) { super.toBytes(buffer); ByteBufUtils.writeUTF8String(buffer, sound); buffer.writeFloat(volume); buffer.writeFloat(pitch);//from w w w. ja v a2s . co m buffer.writeBoolean(bool); }
From source file:steamcraft.common.packets.CopperPipeFluidPacket.java
License:Minecraft Mod Public
@Override public void toBytes(ByteBuf buf) { buf.writeInt(this.x); buf.writeInt(this.y); buf.writeInt(this.z); buf.writeFloat(this.fluidScaled); ByteBufUtils.writeUTF8String(buf, this.fluidName); }
From source file:valkyrienwarfare.api.Vector.java
License:Open Source License
public static void writeToBuffer(Vector vector, ByteBuf buffer) { buffer.writeFloat((float) vector.X); buffer.writeFloat((float) vector.Y); buffer.writeFloat((float) vector.Z); }
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());// w ww.j a v a2 s . c o m buffer.writeFloat(radius); buffer.writeBoolean(spawnParticles); }
From source file:zeldaswordskills.entity.projectile.EntityMobThrowable.java
License:Open Source License
@Override public void writeSpawnData(ByteBuf buffer) { buffer.writeFloat(gravity); }