51 lines
1.3 KiB
Java
51 lines
1.3 KiB
Java
package us.myles.ViaVersion.api.minecraft.metadata.types;
|
|
|
|
import us.myles.ViaVersion.api.minecraft.metadata.MetaType;
|
|
import us.myles.ViaVersion.api.type.Type;
|
|
import us.myles.ViaVersion.api.type.types.version.Types1_14;
|
|
|
|
public enum MetaType1_14 implements MetaType {
|
|
Byte(0, Type.BYTE),
|
|
VarInt(1, Type.VAR_INT),
|
|
Float(2, Type.FLOAT),
|
|
String(3, Type.STRING),
|
|
Chat(4, Type.COMPONENT),
|
|
OptChat(5, Type.OPTIONAL_COMPONENT),
|
|
Slot(6, Type.FLAT_VAR_INT_ITEM),
|
|
Boolean(7, Type.BOOLEAN),
|
|
Vector3F(8, Type.ROTATION),
|
|
Position(9, Type.POSITION1_14),
|
|
OptPosition(10, Type.OPTIONAL_POSITION_1_14),
|
|
Direction(11, Type.VAR_INT),
|
|
OptUUID(12, Type.OPTIONAL_UUID),
|
|
BlockID(13, Type.VAR_INT),
|
|
NBTTag(14, Type.NBT),
|
|
PARTICLE(15, Types1_14.PARTICLE),
|
|
VillagerData(16, Type.VILLAGER_DATA),
|
|
OptVarInt(17, Type.OPTIONAL_VAR_INT),
|
|
Pose(18, Type.VAR_INT),
|
|
Discontinued(99, null);
|
|
|
|
private final int typeID;
|
|
private final Type type;
|
|
|
|
MetaType1_14(int typeID, Type type) {
|
|
this.typeID = typeID;
|
|
this.type = type;
|
|
}
|
|
|
|
public static MetaType1_14 byId(int id) {
|
|
return values()[id];
|
|
}
|
|
|
|
@Override
|
|
public int getTypeID() {
|
|
return typeID;
|
|
}
|
|
|
|
@Override
|
|
public Type getType() {
|
|
return type;
|
|
}
|
|
}
|