Package net.minecraft.network.datasync
Class EntityDataManager.DataEntry<T>
- java.lang.Object
-
- net.minecraft.network.datasync.EntityDataManager.DataEntry<T>
-
- Enclosing class:
- EntityDataManager
public static class EntityDataManager.DataEntry<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DataEntry(DataParameter<T> p_i47010_1_, T p_i47010_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityDataManager.DataEntry<T>
copy()
DataParameter<T>
getAccessor()
T
getValue()
boolean
isDirty()
void
setDirty(boolean p_187208_1_)
void
setValue(T p_187210_1_)
-
-
-
Field Detail
-
accessor
private final DataParameter<T> accessor
-
value
private T value
-
dirty
private boolean dirty
-
-
Constructor Detail
-
DataEntry
public DataEntry(DataParameter<T> p_i47010_1_, T p_i47010_2_)
-
-
Method Detail
-
getAccessor
public DataParameter<T> getAccessor()
-
setValue
public void setValue(T p_187210_1_)
-
getValue
public T getValue()
-
isDirty
public boolean isDirty()
-
setDirty
public void setDirty(boolean p_187208_1_)
-
copy
public EntityDataManager.DataEntry<T> copy()
-
-