net.minecraft.network.syncher

public class SynchedEntityData

acb
net.minecraft.network.syncher.SynchedEntityData
net.minecraft.class_2945
net.minecraft.entity.data.DataTracker
net.minecraft.src.C_5247_
net.minecraft.network.syncher.DataWatcher

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_13334
LOGGER
f_135342_
private static final it.unimi.dsi.fastutil.objects.Object2IntMap<Class<? extends Entity>>
b
ENTITY_ID_POOL
field_13332
TRACKED_ENTITIES
f_135343_
private static final int
c
MAX_ID_VALUE
field_33378
MAX_DATA_VALUE_ID
f_179843_
private final Entity
d
entity
field_13333
trackedEntity
f_135344_
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<SynchedEntityData$DataItem<?>>
e
itemsById
field_13331
entries
f_135345_
private final ReadWriteLock
f
lock
field_13335
lock
f_135346_
private boolean
g
isDirty
field_13329
dirty
f_135348_

Constructor summary

ModifierConstructor
public (Entity trackedEntity)

Method summary

Modifier and TypeMethod
public static <T> EntityDataAccessor<T>
a(Class<? extends bfj> arg0, abz<T> arg1)
defineId(Class<? extends Entity> arg0, EntityDataSerializer<T> arg1)
method_12791(Class<? extends class_1297> arg0, class_2941<T> arg1)
registerData(Class<? extends Entity> entityClass, TrackedDataHandler<T> dataHandler)
m_135353_(Class<? extends C_507_> p_135354_, C_5226_<T> p_135355_)
public <T> void
a(aby<T> arg0, T arg1)
define(EntityDataAccessor<T> arg0, T arg1)
method_12784(class_2940<T> arg0, T arg1)
startTracking(TrackedData<T> key, T initialValue)
m_135372_(C_5225_<T> p_135374_, T arg1)
private <T> void
c(aby<T> arg0, T arg1)
createDataItem(EntityDataAccessor<T> arg0, T arg1)
method_12776(class_2940<T> arg0, T arg1)
addTrackedData(TrackedData<T> key, T value)
m_135385_(C_5225_<T> p_135387_, T arg1)
public <T> boolean
a(aby<T> arg0)
hasItem(EntityDataAccessor<T> arg0)
method_51696(class_2940<T> arg0)
containsKey(TrackedData<T> key)
m_285897_(C_5225_<T> arg0)
private <T> SynchedEntityData$DataItem<T>
c(aby<T> arg0)
getItem(EntityDataAccessor<T> arg0)
method_12783(class_2940<T> arg0)
getEntry(TrackedData<T> key)
m_135379_(C_5225_<T> arg0)
public <T> T
b(aby<T> arg0)
get(EntityDataAccessor<T> arg0)
method_12789(class_2940<T> arg0)
get(TrackedData<T> data)
m_135370_(C_5225_<T> arg0)
public <T> void
b(aby<T> arg0, T arg1)
set(EntityDataAccessor<T> arg0, T arg1)
method_12778(class_2940<T> arg0, T arg1)
set(TrackedData<T> key, T value)
m_135381_(C_5225_<T> p_135383_, T arg1)
public <T> void
a(aby<T> arg0, T arg1, boolean arg2)
set(EntityDataAccessor<T> arg0, T arg1, boolean arg2)
method_49743(class_2940<T> arg0, T arg1, boolean arg2)
set(TrackedData<T> key, T value, boolean force)
m_276349_(C_5225_<T> p_276363_, T p_276370_, boolean arg2)
public boolean
a()
isDirty()
method_12786()
isDirty()
m_135352_()
public List<SynchedEntityData$DataValue<?>>
b()
packDirty()
method_12781()
getDirtyEntries()
m_135378_()
public List<SynchedEntityData$DataValue<?>>
c()
getNonDefaultValues()
method_46357()
getChangedEntries()
m_252804_()
public void
a(List<acb$b<?>> arg0)
assignValues(List<SynchedEntityData$DataValue<?>> arg0)
method_12779(List<class_2945$class_7834<?>> arg0)
writeUpdatedEntries(List<DataTracker$SerializedEntry<?>> entries)
m_135356_(List<C_5247_$C_252362_<?>> arg0)
private <T> void
a(acb$a<T> arg0, acb$b<?> arg1)
assignValue(SynchedEntityData$DataItem<T> arg0, SynchedEntityData$DataValue<?> arg1)
method_12785(class_2945$class_2946<T> arg0, class_2945$class_7834<?> arg1)
copyToFrom(DataTracker$Entry<T> to, DataTracker$SerializedEntry<?> from)
m_135375_(C_5247_$C_5248_<T> p_254484_, C_5247_$C_252362_<?> arg1)
public boolean
d()
isEmpty()
method_12790()
isEmpty()
m_135388_()