public class DataSerializers
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DataSerializer<BlockPos> |
BLOCK_POS |
static DataSerializer<java.lang.Boolean> |
BOOLEAN |
static DataSerializer<java.lang.Byte> |
BYTE |
static DataSerializer<NBTTagCompound> |
COMPOUND_TAG |
static DataSerializer<EnumFacing> |
FACING |
static DataSerializer<java.lang.Float> |
FLOAT |
static DataSerializer<ItemStack> |
ITEM_STACK |
static DataSerializer<com.google.common.base.Optional<BlockPos>> |
OPTIONAL_BLOCK_POS |
static DataSerializer<com.google.common.base.Optional<IBlockState>> |
OPTIONAL_BLOCK_STATE |
static DataSerializer<com.google.common.base.Optional<java.util.UUID>> |
OPTIONAL_UNIQUE_ID |
private static IntIdentityHashBiMap<DataSerializer<?>> |
REGISTRY |
static DataSerializer<Rotations> |
ROTATIONS |
static DataSerializer<java.lang.String> |
STRING |
static DataSerializer<ITextComponent> |
TEXT_COMPONENT |
static DataSerializer<java.lang.Integer> |
VARINT |
Constructor and Description |
---|
DataSerializers() |
Modifier and Type | Method and Description |
---|---|
static DataSerializer<?> |
getSerializer(int id) |
static int |
getSerializerId(DataSerializer<?> serializer) |
static void |
registerSerializer(DataSerializer<?> serializer)
Deprecated.
|
private static final IntIdentityHashBiMap<DataSerializer<?>> REGISTRY
public static final DataSerializer<java.lang.Byte> BYTE
public static final DataSerializer<java.lang.Integer> VARINT
public static final DataSerializer<java.lang.Float> FLOAT
public static final DataSerializer<java.lang.String> STRING
public static final DataSerializer<ITextComponent> TEXT_COMPONENT
public static final DataSerializer<ItemStack> ITEM_STACK
public static final DataSerializer<com.google.common.base.Optional<IBlockState>> OPTIONAL_BLOCK_STATE
public static final DataSerializer<java.lang.Boolean> BOOLEAN
public static final DataSerializer<Rotations> ROTATIONS
public static final DataSerializer<BlockPos> BLOCK_POS
public static final DataSerializer<com.google.common.base.Optional<BlockPos>> OPTIONAL_BLOCK_POS
public static final DataSerializer<EnumFacing> FACING
public static final DataSerializer<com.google.common.base.Optional<java.util.UUID>> OPTIONAL_UNIQUE_ID
public static final DataSerializer<NBTTagCompound> COMPOUND_TAG
@Deprecated public static void registerSerializer(DataSerializer<?> serializer)
@Nullable public static DataSerializer<?> getSerializer(int id)
public static int getSerializerId(DataSerializer<?> serializer)