net.minecraft.network.syncher

public class SynchedEntityData

se
net.minecraft.network.syncher.SynchedEntityData
net.minecraft.class_2945
net.minecraft.entity.data.DataTracker
net.minecraft.network.datasync.EntityDataManager
net.minecraft.server.v1_15_R1.DataWatcher

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
a
LOGGER
field_13334
LOGGER
field_190303_a
private static final Map<Class<? extends Entity>, Integer>
b
ENTITY_ID_POOL
field_13332
trackedEntities
field_187232_a
private final Entity
c
entity
field_13333
trackedEntity
field_187233_b
entity
private final Map<Integer, SynchedEntityData$DataItem<?>>
d
itemsById
field_13331
entries
field_187234_c
entries
private final ReadWriteLock
e
lock
field_13335
lock
field_187235_d
lock
private boolean
f
isEmpty
field_13330
empty
field_187236_e
private boolean
g
isDirty
field_13329
dirty
field_187237_f

Constructor summary

ModifierConstructor
public (Entity arg0)

Method summary

Modifier and TypeMethod
public static <T> EntityDataAccessor<T>
a(Class<? extends akq> arg0, sc<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)
func_187226_a(Class<? extends Entity> arg0, IDataSerializer<T> arg1)
public <T> void
a(sb<T> arg0, T arg1)
define(EntityDataAccessor<T> arg0, T arg1)
method_12784(class_2940<T> arg0, T arg1)
startTracking(TrackedData<T> key, T initialValue)
func_187214_a(DataParameter<T> arg0, T arg1)
register(DataWatcherObject<T> arg0, T arg1)
private <T> void
c(sb<T> arg0, T arg1)
createDataItem(EntityDataAccessor<T> arg0, T arg1)
method_12776(class_2940<T> arg0, T arg1)
addTrackedData(TrackedData<T> arg0, T arg1)
func_187222_c(DataParameter<T> arg0, T arg1)
registerObject(DataWatcherObject<T> arg0, T arg1)
private <T> SynchedEntityData$DataItem<T>
b(sb<T> arg0)
getItem(EntityDataAccessor<T> arg0)
method_12783(class_2940<T> arg0)
getEntry(TrackedData<T> arg0)
func_187219_c(DataParameter<T> arg0)
public <T> T
a(sb<T> arg0)
get(EntityDataAccessor<T> arg0)
method_12789(class_2940<T> arg0)
get(TrackedData<T> arg0)
func_187225_a(DataParameter<T> arg0)
get(DataWatcherObject<T> arg0)
public <T> void
b(sb<T> arg0, T arg1)
set(EntityDataAccessor<T> arg0, T arg1)
method_12778(class_2940<T> arg0, T arg1)
set(TrackedData<T> key, T arg1)
func_187227_b(DataParameter<T> arg0, T arg1)
set(DataWatcherObject<T> arg0, T arg1)
public boolean
a()
isDirty()
method_12786()
isDirty()
func_187223_a()
public static void
a(List<se$a<?>> arg0, kv arg1)
pack(List<SynchedEntityData$DataItem<?>> arg0, FriendlyByteBuf arg1)
method_12787(List<class_2945$class_2946<?>> arg0, class_2540 arg1)
entriesToPacket(List<DataTracker$Entry<?>> arg0, PacketByteBuf arg1)
func_187229_a(List<EntityDataManager$DataEntry<?>> arg0, PacketBuffer arg1)
public List<SynchedEntityData$DataItem<?>>
b()
packDirty()
method_12781()
getDirtyEntries()
func_187221_b()
public List<SynchedEntityData$DataItem<?>>
c()
getAll()
method_12793()
getAllEntries()
func_187231_c()
private static <T> void
a(kv arg0, se$a<T> arg1)
writeDataItem(FriendlyByteBuf arg0, SynchedEntityData$DataItem<T> arg1)
method_12782(class_2540 arg0, class_2945$class_2946<T> arg1)
writeEntryToPacket(PacketByteBuf arg0, DataTracker$Entry<T> arg1)
func_187220_a(PacketBuffer arg0, EntityDataManager$DataEntry<T> arg1)
public static List<SynchedEntityData$DataItem<?>>
a(kv arg0)
unpack(FriendlyByteBuf arg0)
method_12788(class_2540 arg0)
deserializePacket(PacketByteBuf arg0)
func_187215_b(PacketBuffer arg0)
private static <T> SynchedEntityData$DataItem<T>
a(kv arg0, int arg1, sc<T> arg2)
genericHelper(FriendlyByteBuf arg0, int arg1, EntityDataSerializer<T> arg2)
method_12777(class_2540 arg0, int arg1, class_2941<T> arg2)
entryFromPacket(PacketByteBuf arg0, int arg1, TrackedDataHandler<T> arg2)
func_198167_a(PacketBuffer arg0, int arg1, IDataSerializer<T> arg2)
public boolean
d()
isEmpty()
method_12790()
isEmpty()
func_187228_d()
public void
e()
clearDirty()
method_12792()
clearDirty()
func_187230_e()
public void
a(List<se$a<?>> arg0)
assignValues(List<SynchedEntityData$DataItem<?>> arg0)
method_12779(List<class_2945$class_2946<?>> arg0)
writeUpdatedEntries(List<DataTracker$Entry<?>> arg0)
func_187218_a(List<EntityDataManager$DataEntry<?>> arg0)
private <T> void
a(se$a<T> arg0, se$a<?> arg1)
assignValue(SynchedEntityData$DataItem<T> arg0, SynchedEntityData$DataItem<?> arg1)
method_12785(class_2945$class_2946<T> arg0, class_2945$class_2946<?> arg1)
copyToFrom(DataTracker$Entry<T> arg0, DataTracker$Entry<?> arg1)
func_187224_a(EntityDataManager$DataEntry<T> arg0, EntityDataManager$DataEntry<?> arg1)