Package net.minecraft.entity.data
Class DataTracker
java.lang.Object
net.minecraft.entity.data.DataTracker
- Mappings:
Namespace Name named net/minecraft/entity/data/DataTracker
intermediary net/minecraft/class_2945
official alg
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static final record
-
Field Summary
Modifier and TypeFieldDescription(package private) static final Class2IntMap
private boolean
private final DataTracker.Entry<?>[]
private static final Logger
private static final int
private final DataTracked
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate <T> void
copyToFrom
(DataTracker.Entry<T> to, DataTracker.SerializedEntry<?> from) <T> T
get
(TrackedData<T> data) private <T> DataTracker.Entry
<T> getEntry
(TrackedData<T> key) boolean
isDirty()
static <T> TrackedData
<T> registerData
(Class<? extends DataTracked> entityClass, TrackedDataHandler<T> dataHandler) <T> void
set
(TrackedData<T> key, T value) <T> void
set
(TrackedData<T> key, T value, boolean force) void
writeUpdatedEntries
(List<DataTracker.SerializedEntry<?>> entries)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/entity/data/DataTracker;LOGGER:Lorg/slf4j/Logger;
intermediary field_13334
Lnet/minecraft/class_2945;field_13334:Lorg/slf4j/Logger;
official a
Lalg;a:Lorg/slf4j/Logger;
-
MAX_DATA_VALUE_ID
private static final int MAX_DATA_VALUE_ID- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_DATA_VALUE_ID
Lnet/minecraft/entity/data/DataTracker;MAX_DATA_VALUE_ID:I
intermediary field_33378
Lnet/minecraft/class_2945;field_33378:I
official b
Lalg;b:I
-
CLASS_TO_LAST_ID
- Mappings:
Namespace Name Mixin selector named CLASS_TO_LAST_ID
Lnet/minecraft/entity/data/DataTracker;CLASS_TO_LAST_ID:Lnet/minecraft/util/collection/Class2IntMap;
intermediary field_49021
Lnet/minecraft/class_2945;field_49021:Lnet/minecraft/class_9227;
official c
Lalg;c:Layx;
-
trackedEntity
- Mappings:
Namespace Name Mixin selector named trackedEntity
Lnet/minecraft/entity/data/DataTracker;trackedEntity:Lnet/minecraft/entity/data/DataTracked;
intermediary field_13333
Lnet/minecraft/class_2945;field_13333:Lnet/minecraft/class_9221;
official d
Lalg;d:Lalf;
-
entries
- Mappings:
Namespace Name Mixin selector named entries
Lnet/minecraft/entity/data/DataTracker;entries:[Lnet/minecraft/entity/data/DataTracker$Entry;
intermediary field_13331
Lnet/minecraft/class_2945;field_13331:[Lnet/minecraft/class_2945$class_2946;
official e
Lalg;e:[Lalg$b;
-
dirty
private boolean dirty- Mappings:
Namespace Name Mixin selector named dirty
Lnet/minecraft/entity/data/DataTracker;dirty:Z
intermediary field_13329
Lnet/minecraft/class_2945;field_13329:Z
official f
Lalg;f:Z
-
-
Constructor Details
-
DataTracker
DataTracker(DataTracked trackedEntity, DataTracker.Entry<?>[] entries) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/data/DataTracker;<init>(Lnet/minecraft/entity/data/DataTracked;[Lnet/minecraft/entity/data/DataTracker$Entry;)V
intermediary <init>
Lnet/minecraft/class_2945;<init>(Lnet/minecraft/class_9221;[Lnet/minecraft/class_2945$class_2946;)V
official <init>
Lalg;<init>(Lalf;[Lalg$b;)V
-
-
Method Details
-
registerData
public static <T> TrackedData<T> registerData(Class<? extends DataTracked> entityClass, TrackedDataHandler<T> dataHandler) - Mappings:
Namespace Name Mixin selector named registerData
Lnet/minecraft/entity/data/DataTracker;registerData(Ljava/lang/Class;Lnet/minecraft/entity/data/TrackedDataHandler;)Lnet/minecraft/entity/data/TrackedData;
intermediary method_12791
Lnet/minecraft/class_2945;method_12791(Ljava/lang/Class;Lnet/minecraft/class_2941;)Lnet/minecraft/class_2940;
official a
Lalg;a(Ljava/lang/Class;Lald;)Lalc;
-
getEntry
- Mappings:
Namespace Name Mixin selector named getEntry
Lnet/minecraft/entity/data/DataTracker;getEntry(Lnet/minecraft/entity/data/TrackedData;)Lnet/minecraft/entity/data/DataTracker$Entry;
intermediary method_12783
Lnet/minecraft/class_2945;method_12783(Lnet/minecraft/class_2940;)Lnet/minecraft/class_2945$class_2946;
official b
Lalg;b(Lalc;)Lalg$b;
-
get
- Mappings:
Namespace Name Mixin selector named get
Lnet/minecraft/entity/data/DataTracker;get(Lnet/minecraft/entity/data/TrackedData;)Ljava/lang/Object;
intermediary method_12789
Lnet/minecraft/class_2945;method_12789(Lnet/minecraft/class_2940;)Ljava/lang/Object;
official a
Lalg;a(Lalc;)Ljava/lang/Object;
-
set
- Mappings:
Namespace Name Mixin selector named set
Lnet/minecraft/entity/data/DataTracker;set(Lnet/minecraft/entity/data/TrackedData;Ljava/lang/Object;)V
intermediary method_12778
Lnet/minecraft/class_2945;method_12778(Lnet/minecraft/class_2940;Ljava/lang/Object;)V
official a
Lalg;a(Lalc;Ljava/lang/Object;)V
-
set
- Mappings:
Namespace Name Mixin selector named set
Lnet/minecraft/entity/data/DataTracker;set(Lnet/minecraft/entity/data/TrackedData;Ljava/lang/Object;Z)V
intermediary method_49743
Lnet/minecraft/class_2945;method_49743(Lnet/minecraft/class_2940;Ljava/lang/Object;Z)V
official a
Lalg;a(Lalc;Ljava/lang/Object;Z)V
-
isDirty
public boolean isDirty()- Mappings:
Namespace Name Mixin selector named isDirty
Lnet/minecraft/entity/data/DataTracker;isDirty()Z
intermediary method_12786
Lnet/minecraft/class_2945;method_12786()Z
official a
Lalg;a()Z
-
getDirtyEntries
- Mappings:
Namespace Name Mixin selector named getDirtyEntries
Lnet/minecraft/entity/data/DataTracker;getDirtyEntries()Ljava/util/List;
intermediary method_12781
Lnet/minecraft/class_2945;method_12781()Ljava/util/List;
official b
Lalg;b()Ljava/util/List;
-
getChangedEntries
- Mappings:
Namespace Name Mixin selector named getChangedEntries
Lnet/minecraft/entity/data/DataTracker;getChangedEntries()Ljava/util/List;
intermediary method_46357
Lnet/minecraft/class_2945;method_46357()Ljava/util/List;
official c
Lalg;c()Ljava/util/List;
-
writeUpdatedEntries
- Mappings:
Namespace Name Mixin selector named writeUpdatedEntries
Lnet/minecraft/entity/data/DataTracker;writeUpdatedEntries(Ljava/util/List;)V
intermediary method_12779
Lnet/minecraft/class_2945;method_12779(Ljava/util/List;)V
official a
Lalg;a(Ljava/util/List;)V
-
copyToFrom
- Mappings:
Namespace Name Mixin selector named copyToFrom
Lnet/minecraft/entity/data/DataTracker;copyToFrom(Lnet/minecraft/entity/data/DataTracker$Entry;Lnet/minecraft/entity/data/DataTracker$SerializedEntry;)V
intermediary method_12785
Lnet/minecraft/class_2945;method_12785(Lnet/minecraft/class_2945$class_2946;Lnet/minecraft/class_2945$class_7834;)V
official a
Lalg;a(Lalg$b;Lalg$c;)V
-