ViaVersion/api/src/main/java/us/myles/ViaVersion/api/minecraft/metadata/types/MetaType1_12.java

45 lines
1.0 KiB
Java
Raw Normal View History

2017-06-01 16:00:35 +02:00
package us.myles.ViaVersion.api.minecraft.metadata.types;
import us.myles.ViaVersion.api.minecraft.metadata.MetaType;
import us.myles.ViaVersion.api.type.Type;
public enum MetaType1_12 implements MetaType {
Byte(0, Type.BYTE),
VarInt(1, Type.VAR_INT),
Float(2, Type.FLOAT),
String(3, Type.STRING),
2020-08-03 08:39:39 +02:00
Chat(4, Type.COMPONENT),
2017-06-01 16:00:35 +02:00
Slot(5, Type.ITEM),
Boolean(6, Type.BOOLEAN),
Vector3F(7, Type.ROTATION),
Position(8, Type.POSITION),
OptPosition(9, Type.OPTIONAL_POSITION),
Direction(10, Type.VAR_INT),
OptUUID(11, Type.OPTIONAL_UUID),
BlockID(12, Type.VAR_INT),
NBTTag(13, Type.NBT),
Discontinued(99, null);
private final int typeID;
private final Type type;
2020-04-23 21:07:12 +02:00
MetaType1_12(int typeID, Type type) {
this.typeID = typeID;
this.type = type;
}
2017-06-01 16:00:35 +02:00
public static MetaType1_12 byId(int id) {
return values()[id];
}
2020-04-23 21:07:12 +02:00
@Override
public int getTypeID() {
return typeID;
}
@Override
public Type getType() {
return type;
}
2017-06-01 16:00:35 +02:00
}