public class BedSerializer extends Object implements Serializer<Bed>
| Modifier and Type | Field and Description |
|---|---|
static Serializer |
INSTANCE |
| Constructor and Description |
|---|
BedSerializer() |
| Modifier and Type | Method and Description |
|---|---|
short |
readMetadata(Bed data) |
Bed |
writeMetadata(ItemType type,
short metadata) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadNBT, readNBT, writeNBTpublic static final Serializer INSTANCE
public short readMetadata(Bed data)
readMetadata in interface Serializer<Bed>public Bed writeMetadata(ItemType type, short metadata)
writeMetadata in interface Serializer<Bed>Copyright © 2017–2020 NukkitX. All rights reserved.