Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Entity data serializers

Generated from the 26.2 decompile by tools/gen_reference.py. Do not edit by hand.

Every EntityDataSerializer in EntityDataSerializers, in registration order, which is the wire idEntityDataSerializers.registerSerializer pushes each one into a CrudeIncrementalIntIdentityHashBiMap that hands out the next int. A SynchedEntityData.DataValue on the wire is an unsigned byte accessor id, this var-int, and the encoded value. For value type marks the ones built by EntityDataSerializer.forValueType, the immutable case where EntityDataSerializer.copy is identity. See Synched entity data.

43 serializers, wire ids 0 to 42

idconstantvalue typebuilt by
0EntityDataSerializers.BYTEBytefor value type
1EntityDataSerializers.INTIntegerfor value type
2EntityDataSerializers.LONGLongfor value type
3EntityDataSerializers.FLOATFloatfor value type
4EntityDataSerializers.STRINGStringfor value type
5EntityDataSerializers.COMPONENTComponentfor value type
6EntityDataSerializers.OPTIONAL_COMPONENTOptional<Component>for value type
7EntityDataSerializers.ITEM_STACKItemStackan anonymous subclass
8EntityDataSerializers.BOOLEANBooleanfor value type
9EntityDataSerializers.ROTATIONSRotationsfor value type
10EntityDataSerializers.BLOCK_POSBlockPosfor value type
11EntityDataSerializers.OPTIONAL_BLOCK_POSOptional<BlockPos>for value type
12EntityDataSerializers.DIRECTIONDirectionfor value type
13EntityDataSerializers.OPTIONAL_LIVING_ENTITY_REFERENCEOptional<EntityReference<LivingEntity>>for value type
14EntityDataSerializers.BLOCK_STATEBlockStatefor value type
15EntityDataSerializers.OPTIONAL_BLOCK_STATEOptional<BlockState>for value type
16EntityDataSerializers.PARTICLEParticleOptionsfor value type
17EntityDataSerializers.PARTICLESList<ParticleOptions>for value type
18EntityDataSerializers.VILLAGER_DATAVillagerDatafor value type
19EntityDataSerializers.OPTIONAL_UNSIGNED_INTOptionalIntfor value type
20EntityDataSerializers.POSEPosefor value type
21EntityDataSerializers.CAT_VARIANTHolder<CatVariant>for value type
22EntityDataSerializers.CAT_SOUND_VARIANTHolder<CatSoundVariant>for value type
23EntityDataSerializers.COW_VARIANTHolder<CowVariant>for value type
24EntityDataSerializers.COW_SOUND_VARIANTHolder<CowSoundVariant>for value type
25EntityDataSerializers.WOLF_VARIANTHolder<WolfVariant>for value type
26EntityDataSerializers.WOLF_SOUND_VARIANTHolder<WolfSoundVariant>for value type
27EntityDataSerializers.FROG_VARIANTHolder<FrogVariant>for value type
28EntityDataSerializers.PIG_VARIANTHolder<PigVariant>for value type
29EntityDataSerializers.PIG_SOUND_VARIANTHolder<PigSoundVariant>for value type
30EntityDataSerializers.CHICKEN_VARIANTHolder<ChickenVariant>for value type
31EntityDataSerializers.CHICKEN_SOUND_VARIANTHolder<ChickenSoundVariant>for value type
32EntityDataSerializers.ZOMBIE_NAUTILUS_VARIANTHolder<ZombieNautilusVariant>for value type
33EntityDataSerializers.OPTIONAL_GLOBAL_POSOptional<GlobalPos>for value type
34EntityDataSerializers.PAINTING_VARIANTHolder<PaintingVariant>for value type
35EntityDataSerializers.SNIFFER_STATESniffer.Statefor value type
36EntityDataSerializers.ARMADILLO_STATEArmadillo.ArmadilloStatefor value type
37EntityDataSerializers.COPPER_GOLEM_STATECopperGolemStatefor value type
38EntityDataSerializers.WEATHERING_COPPER_STATEWeatheringCopper.WeatherStatefor value type
39EntityDataSerializers.VECTOR3Vector3fcfor value type
40EntityDataSerializers.QUATERNIONQuaternionfcfor value type
41EntityDataSerializers.RESOLVABLE_PROFILEResolvableProfilefor value type
42EntityDataSerializers.HUMANOID_ARMHumanoidArmfor value type