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