Package net.minecraft.network.syncher
Class SynchedEntityData
java.lang.Object
net.minecraft.network.syncher.SynchedEntityData
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SyncedDataHolder
(package private) static final ClassTreeIdRegistry
private boolean
private final SynchedEntityData.DataItem<?>[]
private static final org.slf4j.Logger
private static final int
-
Constructor Summary
ConstructorDescriptionSynchedEntityData
(SyncedDataHolder p_326156_, SynchedEntityData.DataItem<?>[] p_326032_) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> void
assignValue
(SynchedEntityData.DataItem<T> p_135376_, SynchedEntityData.DataValue<?> p_254484_) void
assignValues
(List<SynchedEntityData.DataValue<?>> p_135357_) static <T> EntityDataAccessor
<T> defineId
(Class<? extends SyncedDataHolder> p_135354_, EntityDataSerializer<T> p_135355_) <T> T
get
(EntityDataAccessor<T> p_135371_) private <T> SynchedEntityData.DataItem
<T> getItem
(EntityDataAccessor<T> p_135380_) boolean
isDirty()
<T> void
set
(EntityDataAccessor<T> p_135382_, T p_135383_) <T> void
set
(EntityDataAccessor<T> p_276368_, T p_276363_, boolean p_276370_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_ID_VALUE
private static final int MAX_ID_VALUE- See Also:
-
ID_REGISTRY
-
entity
-
itemsById
-
isDirty
private boolean isDirty
-
-
Constructor Details
-
SynchedEntityData
SynchedEntityData(SyncedDataHolder p_326156_, SynchedEntityData.DataItem<?>[] p_326032_)
-
-
Method Details
-
defineId
public static <T> EntityDataAccessor<T> defineId(Class<? extends SyncedDataHolder> p_135354_, EntityDataSerializer<T> p_135355_) -
getItem
-
get
-
set
-
set
-
isDirty
public boolean isDirty() -
packDirty
-
getNonDefaultValues
-
assignValues
-
assignValue
private <T> void assignValue(SynchedEntityData.DataItem<T> p_135376_, SynchedEntityData.DataValue<?> p_254484_)
-