Package net.minecraft.network.datasync
Class DataSerializers
- java.lang.Object
-
- net.minecraft.network.datasync.DataSerializers
-
public class DataSerializers extends java.lang.Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DataSerializers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getSerializedId(IDataSerializer<?> p_187188_0_)
static IDataSerializer<?>
getSerializer(int p_187190_0_)
static void
registerSerializer(IDataSerializer<?> p_187189_0_)
-
-
-
Field Detail
-
SERIALIZERS
private static final IntIdentityHashBiMap<IDataSerializer<?>> SERIALIZERS
-
BYTE
public static final IDataSerializer<java.lang.Byte> BYTE
-
INT
public static final IDataSerializer<java.lang.Integer> INT
-
FLOAT
public static final IDataSerializer<java.lang.Float> FLOAT
-
STRING
public static final IDataSerializer<java.lang.String> STRING
-
COMPONENT
public static final IDataSerializer<ITextComponent> COMPONENT
-
OPTIONAL_COMPONENT
public static final IDataSerializer<java.util.Optional<ITextComponent>> OPTIONAL_COMPONENT
-
ITEM_STACK
public static final IDataSerializer<ItemStack> ITEM_STACK
-
BLOCK_STATE
public static final IDataSerializer<java.util.Optional<BlockState>> BLOCK_STATE
-
BOOLEAN
public static final IDataSerializer<java.lang.Boolean> BOOLEAN
-
PARTICLE
public static final IDataSerializer<IParticleData> PARTICLE
-
ROTATIONS
public static final IDataSerializer<Rotations> ROTATIONS
-
BLOCK_POS
public static final IDataSerializer<BlockPos> BLOCK_POS
-
OPTIONAL_BLOCK_POS
public static final IDataSerializer<java.util.Optional<BlockPos>> OPTIONAL_BLOCK_POS
-
DIRECTION
public static final IDataSerializer<Direction> DIRECTION
-
OPTIONAL_UUID
public static final IDataSerializer<java.util.Optional<java.util.UUID>> OPTIONAL_UUID
-
COMPOUND_TAG
public static final IDataSerializer<CompoundNBT> COMPOUND_TAG
-
VILLAGER_DATA
public static final IDataSerializer<VillagerData> VILLAGER_DATA
-
OPTIONAL_UNSIGNED_INT
public static final IDataSerializer<java.util.OptionalInt> OPTIONAL_UNSIGNED_INT
-
POSE
public static final IDataSerializer<Pose> POSE
-
-
Method Detail
-
registerSerializer
public static void registerSerializer(IDataSerializer<?> p_187189_0_)
-
getSerializer
@Nullable public static IDataSerializer<?> getSerializer(int p_187190_0_)
-
getSerializedId
public static int getSerializedId(IDataSerializer<?> p_187188_0_)
-
-