public static enum MetadataConstants.Type extends Enum<MetadataConstants.Type>
| Enum Constant and Description |
|---|
BYTE |
FLOAT |
INT |
ITEM |
LONG |
SHORT |
STRING |
VECTOR3F |
VECTOR3I |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
read(io.netty.buffer.ByteBuf buf) |
static MetadataConstants.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataConstants.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract void |
write(io.netty.buffer.ByteBuf buf,
Object o) |
public static final MetadataConstants.Type BYTE
public static final MetadataConstants.Type SHORT
public static final MetadataConstants.Type INT
public static final MetadataConstants.Type FLOAT
public static final MetadataConstants.Type STRING
public static final MetadataConstants.Type ITEM
public static final MetadataConstants.Type VECTOR3I
public static final MetadataConstants.Type LONG
public static final MetadataConstants.Type VECTOR3F
public static MetadataConstants.Type[] values()
for (MetadataConstants.Type c : MetadataConstants.Type.values()) System.out.println(c);
public static MetadataConstants.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract Object read(io.netty.buffer.ByteBuf buf)
public abstract void write(io.netty.buffer.ByteBuf buf,
Object o)
Copyright © 2017–2018 NukkitX. All rights reserved.