public class Slot extends Object implements Writable, NBTSerializable
Modifier and Type | Field and Description |
---|---|
protected CompoundTag |
compoundTag |
protected short |
damageValue |
protected short |
id |
protected Substance |
mat |
protected byte |
quantity |
protected byte |
slot |
Modifier | Constructor and Description |
---|---|
protected |
Slot() |
|
Slot(ByteBuf buf) |
Modifier and Type | Method and Description |
---|---|
CompoundTag |
compoundTag()
Gets the NBT data of the current item in the slot
|
short |
damageValue()
Gets the damage of the current item in the slot
|
int |
id()
Gets the ID of the current item in the slot
|
Item |
item() |
short |
quantity()
Gets the amount of the current item in the slot
|
byte |
slot() |
Substance |
type()
Gets the type of the current item in the slot
|
void |
write(ByteBuf buf)
Writes the data contained by the current implementation into serialized form in the provided
io.netty.buffer.ByteBuf |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
protected volatile short id
protected volatile byte slot
protected volatile byte quantity
protected volatile short damageValue
protected volatile CompoundTag compoundTag
public int id()
public Substance type()
public short quantity()
public short damageValue()
public CompoundTag compoundTag()
public byte slot()
public void write(ByteBuf buf)
Writable
io.netty.buffer.ByteBuf
Check the implementation source to see serialization spec
Copyright © 2016. All rights reserved.