Example usage for io.netty.buffer ByteBuf readBoolean

List of usage examples for io.netty.buffer ByteBuf readBoolean

Introduction

In this page you can find the example usage for io.netty.buffer ByteBuf readBoolean.

Prototype

public abstract boolean readBoolean();

Source Link

Document

Gets a boolean at the current readerIndex and increases the readerIndex by 1 in this buffer.

Usage

From source file:zeldaswordskills.entity.projectile.EntityMagicSpell.java

License:Open Source License

@Override
public void readSpawnData(ByteBuf buffer) {
    super.readSpawnData(buffer);
    type = (MagicType.values()[buffer.readInt() % MagicType.values().length]);
    radius = buffer.readFloat();/*from   w  w w .  ja va 2 s  . com*/
    spawnParticles = buffer.readBoolean();
}