public class DataSerializers
extends java.lang.Object
Constructor and Description |
---|
DataSerializers() |
Modifier and Type | Method and Description |
---|---|
static IDataSerializer<?> |
getSerializer(int id) |
static int |
getSerializerId(IDataSerializer<?> serializer) |
static void |
registerSerializer(IDataSerializer<?> serializer) |
private static final IntIdentityHashBiMap<IDataSerializer<?>> REGISTRY
public static final IDataSerializer<java.lang.Byte> BYTE
public static final IDataSerializer<java.lang.Integer> VARINT
public static final IDataSerializer<java.lang.Float> FLOAT
public static final IDataSerializer<java.lang.String> STRING
public static final IDataSerializer<ITextComponent> TEXT_COMPONENT
public static final IDataSerializer<java.util.Optional<ITextComponent>> OPTIONAL_TEXT_COMPONENT
public static final IDataSerializer<ItemStack> ITEMSTACK
public static final IDataSerializer<java.util.Optional<BlockState>> OPTIONAL_BLOCK_STATE
public static final IDataSerializer<java.lang.Boolean> BOOLEAN
public static final IDataSerializer<IParticleData> PARTICLE_DATA
public static final IDataSerializer<Rotations> ROTATIONS
public static final IDataSerializer<BlockPos> BLOCK_POS
public static final IDataSerializer<java.util.Optional<BlockPos>> OPTIONAL_BLOCK_POS
public static final IDataSerializer<Direction> DIRECTION
public static final IDataSerializer<java.util.Optional<java.util.UUID>> OPTIONAL_UNIQUE_ID
public static final IDataSerializer<CompoundNBT> COMPOUND_NBT
public static final IDataSerializer<VillagerData> VILLAGER_DATA
public static final IDataSerializer<java.util.OptionalInt> OPTIONAL_VARINT
public static final IDataSerializer<Pose> POSE
public static void registerSerializer(IDataSerializer<?> serializer)
@Nullable public static IDataSerializer<?> getSerializer(int id)
public static int getSerializerId(IDataSerializer<?> serializer)