Example usage for io.netty.buffer ByteBufOutputStream writeFloat

List of usage examples for io.netty.buffer ByteBufOutputStream writeFloat

Introduction

In this page you can find the example usage for io.netty.buffer ByteBufOutputStream writeFloat.

Prototype

@Override
    public void writeFloat(float v) throws IOException 

Source Link

Usage

From source file:de.sanandrew.mods.particledeco.util.ParticleBoxData.java

License:Creative Commons License

public void writeDataToByteBuf(ByteBufOutputStream stream) throws IOException {
    stream.writeInt(this.particleColor);
    stream.writeFloat(this.particleHeight);
    stream.writeFloat(this.particleSpeed);
    stream.writeInt(this.particleType.ordinal());
    stream.writeInt(this.particleSpread.ordinal());
}