Package net.minecraft.network.syncher
Class SynchedEntityData
java.lang.Object
net.minecraft.network.syncher.SynchedEntityData
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Entity
private boolean
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<SynchedEntityData.DataItem<?>>
private final ReadWriteLock
private static final org.slf4j.Logger
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate <T> void
assignValue
(SynchedEntityData.DataItem<T> p_135376_, SynchedEntityData.DataValue<?> p_254484_) void
assignValues
(List<SynchedEntityData.DataValue<?>> p_135357_) private <T> void
createDataItem
(EntityDataAccessor<T> p_135386_, T p_135387_) <T> void
define
(EntityDataAccessor<T> p_135373_, T p_135374_) static <T> EntityDataAccessor<T>
defineId
(Class<? extends Entity> p_135354_, EntityDataSerializer<T> p_135355_) <T> T
get
(EntityDataAccessor<T> p_135371_) private <T> SynchedEntityData.DataItem<T>
getItem
(EntityDataAccessor<T> p_135380_) <T> boolean
hasItem
(EntityDataAccessor<T> p_286294_) boolean
isDirty()
boolean
isEmpty()
<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 -
ENTITY_ID_POOL
-
MAX_ID_VALUE
private static final int MAX_ID_VALUE- See Also:
-
entity
-
itemsById
-
lock
-
isDirty
private boolean isDirty
-
-
Constructor Details
-
SynchedEntityData
-
-
Method Details
-
defineId
public static <T> EntityDataAccessor<T> defineId(Class<? extends Entity> p_135354_, EntityDataSerializer<T> p_135355_) -
define
-
createDataItem
-
hasItem
-
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_) -
isEmpty
public boolean isEmpty()
-