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

51 lines
1.3 KiB
Java
Raw Normal View History

2019-01-09 19:50:27 +01:00
package us.myles.ViaVersion.api.minecraft.metadata.types;
import us.myles.ViaVersion.api.minecraft.metadata.MetaType;
import us.myles.ViaVersion.api.type.Type;
2019-11-11 12:29:51 +01:00
import us.myles.ViaVersion.api.type.types.version.Types1_14;
2019-01-09 19:50:27 +01:00
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),
2019-01-09 19:50:27 +01:00
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),
2019-01-09 19:50:27 +01:00
Direction(11, Type.VAR_INT),
OptUUID(12, Type.OPTIONAL_UUID),
BlockID(13, Type.VAR_INT),
NBTTag(14, Type.NBT),
2019-11-11 12:29:51 +01:00
PARTICLE(15, Types1_14.PARTICLE),
2019-01-09 19:50:27 +01:00
VillagerData(16, Type.VILLAGER_DATA),
OptVarInt(17, Type.OPTIONAL_VAR_INT),
Pose(18, Type.VAR_INT),
2019-01-09 19:50:27 +01:00
Discontinued(99, null);
private final int typeID;
private final Type type;
2020-04-23 21:07:12 +02:00
MetaType1_14(int typeID, Type type) {
this.typeID = typeID;
this.type = type;
}
2019-01-09 19:50:27 +01:00
public static MetaType1_14 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;
}
2019-01-09 19:50:27 +01:00
}