public enum MetadataType extends Enum<MetadataType>
Enum Constant and Description |
---|
BLOCKID |
BOOLEAN |
BYTE |
CHAT |
DIRECTION |
FLOAT |
INT |
ITEM |
NBTTAG |
OPTPOSITION |
OPTUUID |
POSITION |
STRING |
VECTOR |
Modifier and Type | Method and Description |
---|---|
static MetadataType |
byId(int id) |
Class<?> |
getDataType() |
int |
getId() |
boolean |
isOptional() |
static MetadataType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetadataType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetadataType BYTE
public static final MetadataType INT
public static final MetadataType FLOAT
public static final MetadataType STRING
public static final MetadataType CHAT
public static final MetadataType ITEM
public static final MetadataType BOOLEAN
public static final MetadataType VECTOR
public static final MetadataType POSITION
public static final MetadataType OPTPOSITION
public static final MetadataType DIRECTION
public static final MetadataType OPTUUID
public static final MetadataType BLOCKID
public static final MetadataType NBTTAG
public static MetadataType[] values()
for (MetadataType c : MetadataType.values()) System.out.println(c);
public static MetadataType 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 static MetadataType byId(int id)
public int getId()
public Class<?> getDataType()
public boolean isOptional()
Copyright © 2021. All rights reserved.