Package net.minecraft.entity.data
Class DataTracker
java.lang.Object
net.minecraft.entity.data.DataTracker
- Mappings:
Namespace Name official xs
intermediary net/minecraft/class_2945
named net/minecraft/entity/data/DataTracker
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private final Int2ObjectMap<DataTracker.Entry<?>>
private static final int
private static final int
private final ReadWriteLock
private static final Logger
private static final Object2IntMap<Class<? extends Entity>>
private final Entity
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate <T> void
addTrackedData
(TrackedData<T> trackedData, T t) void
private <T> void
copyToFrom
(DataTracker.Entry<T> to, DataTracker.Entry<?> from) static @Nullable List<DataTracker.Entry<?>>
static void
entriesToPacket
(@Nullable List<DataTracker.Entry<?>> entries, PacketByteBuf buf) private static <T> DataTracker.Entry<T>
entryFromPacket
(PacketByteBuf buf, int int2, TrackedDataHandler<T> trackedDataHandler) <T> T
get
(TrackedData<T> data) private <T> DataTracker.Entry<T>
getEntry
(TrackedData<T> trackedData) boolean
isDirty()
boolean
isEmpty()
static <T> TrackedData<T>
registerData
(Class<? extends Entity> entityClass, TrackedDataHandler<T> dataHandler) <T> void
set
(TrackedData<T> key, T value) <T> void
startTracking
(TrackedData<T> key, T initialValue) private static <T> void
writeEntryToPacket
(PacketByteBuf buf, DataTracker.Entry<T> entry) void
writeUpdatedEntries
(List<DataTracker.Entry<?>> entries)
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lxs;a:Lorg/apache/logging/log4j/Logger;
intermediary field_13334
Lnet/minecraft/class_2945;field_13334:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/entity/data/DataTracker;LOGGER:Lorg/apache/logging/log4j/Logger;
-
TRACKED_ENTITIES
- Mappings:
Namespace Name Mixin selector official b
Lxs;b:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
intermediary field_13332
Lnet/minecraft/class_2945;field_13332:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
named TRACKED_ENTITIES
Lnet/minecraft/entity/data/DataTracker;TRACKED_ENTITIES:Lit/unimi/dsi/fastutil/objects/Object2IntMap;
-
field_33377
private static final int field_33377- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lxs;c:I
intermediary field_33377
Lnet/minecraft/class_2945;field_33377:I
named field_33377
Lnet/minecraft/entity/data/DataTracker;field_33377:I
-
field_33378
private static final int field_33378- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lxs;d:I
intermediary field_33378
Lnet/minecraft/class_2945;field_33378:I
named field_33378
Lnet/minecraft/entity/data/DataTracker;field_33378:I
-
trackedEntity
- Mappings:
Namespace Name Mixin selector official e
Lxs;e:Lawt;
intermediary field_13333
Lnet/minecraft/class_2945;field_13333:Lnet/minecraft/class_1297;
named trackedEntity
Lnet/minecraft/entity/data/DataTracker;trackedEntity:Lnet/minecraft/entity/Entity;
-
entries
- Mappings:
Namespace Name Mixin selector official f
Lxs;f:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
intermediary field_13331
Lnet/minecraft/class_2945;field_13331:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
named entries
Lnet/minecraft/entity/data/DataTracker;entries:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
-
lock
- Mappings:
Namespace Name Mixin selector official g
Lxs;g:Ljava/util/concurrent/locks/ReadWriteLock;
intermediary field_13335
Lnet/minecraft/class_2945;field_13335:Ljava/util/concurrent/locks/ReadWriteLock;
named lock
Lnet/minecraft/entity/data/DataTracker;lock:Ljava/util/concurrent/locks/ReadWriteLock;
-
empty
private boolean empty- Mappings:
Namespace Name Mixin selector official h
Lxs;h:Z
intermediary field_13330
Lnet/minecraft/class_2945;field_13330:Z
named empty
Lnet/minecraft/entity/data/DataTracker;empty:Z
-
dirty
private boolean dirty- Mappings:
Namespace Name Mixin selector official i
Lxs;i:Z
intermediary field_13329
Lnet/minecraft/class_2945;field_13329:Z
named dirty
Lnet/minecraft/entity/data/DataTracker;dirty:Z
-
-
Constructor Details
-
DataTracker
- Mappings:
Namespace Name Mixin selector official <init>
Lxs;<init>(Lawt;)V
intermediary <init>
Lnet/minecraft/class_2945;<init>(Lnet/minecraft/class_1297;)V
named <init>
Lnet/minecraft/entity/data/DataTracker;<init>(Lnet/minecraft/entity/Entity;)V
-
-
Method Details
-
registerData
public static <T> TrackedData<T> registerData(Class<? extends Entity> entityClass, TrackedDataHandler<T> dataHandler) - Mappings:
Namespace Name Mixin selector official a
Lxs;a(Ljava/lang/Class;Lxq;)Lxp;
intermediary method_12791
Lnet/minecraft/class_2945;method_12791(Ljava/lang/Class;Lnet/minecraft/class_2941;)Lnet/minecraft/class_2940;
named registerData
Lnet/minecraft/entity/data/DataTracker;registerData(Ljava/lang/Class;Lnet/minecraft/entity/data/TrackedDataHandler;)Lnet/minecraft/entity/data/TrackedData;
-
startTracking
- Mappings:
Namespace Name Mixin selector official a
Lxs;a(Lxp;Ljava/lang/Object;)V
intermediary method_12784
Lnet/minecraft/class_2945;method_12784(Lnet/minecraft/class_2940;Ljava/lang/Object;)V
named startTracking
Lnet/minecraft/entity/data/DataTracker;startTracking(Lnet/minecraft/entity/data/TrackedData;Ljava/lang/Object;)V
-
addTrackedData
- Mappings:
Namespace Name Mixin selector official c
Lxs;c(Lxp;Ljava/lang/Object;)V
intermediary method_12776
Lnet/minecraft/class_2945;method_12776(Lnet/minecraft/class_2940;Ljava/lang/Object;)V
named addTrackedData
Lnet/minecraft/entity/data/DataTracker;addTrackedData(Lnet/minecraft/entity/data/TrackedData;Ljava/lang/Object;)V
-
getEntry
- Mappings:
Namespace Name Mixin selector official b
Lxs;b(Lxp;)Lxs$a;
intermediary method_12783
Lnet/minecraft/class_2945;method_12783(Lnet/minecraft/class_2940;)Lnet/minecraft/class_2945$class_2946;
named getEntry
Lnet/minecraft/entity/data/DataTracker;getEntry(Lnet/minecraft/entity/data/TrackedData;)Lnet/minecraft/entity/data/DataTracker$Entry;
-
get
- Mappings:
Namespace Name Mixin selector official a
Lxs;a(Lxp;)Ljava/lang/Object;
intermediary method_12789
Lnet/minecraft/class_2945;method_12789(Lnet/minecraft/class_2940;)Ljava/lang/Object;
named get
Lnet/minecraft/entity/data/DataTracker;get(Lnet/minecraft/entity/data/TrackedData;)Ljava/lang/Object;
-
set
- Mappings:
Namespace Name Mixin selector official b
Lxs;b(Lxp;Ljava/lang/Object;)V
intermediary method_12778
Lnet/minecraft/class_2945;method_12778(Lnet/minecraft/class_2940;Ljava/lang/Object;)V
named set
Lnet/minecraft/entity/data/DataTracker;set(Lnet/minecraft/entity/data/TrackedData;Ljava/lang/Object;)V
-
isDirty
public boolean isDirty()- Mappings:
Namespace Name Mixin selector official a
Lxs;a()Z
intermediary method_12786
Lnet/minecraft/class_2945;method_12786()Z
named isDirty
Lnet/minecraft/entity/data/DataTracker;isDirty()Z
-
entriesToPacket
public static void entriesToPacket(@Nullable @Nullable List<DataTracker.Entry<?>> entries, PacketByteBuf buf) - Mappings:
Namespace Name Mixin selector official a
Lxs;a(Ljava/util/List;Lpn;)V
intermediary method_12787
Lnet/minecraft/class_2945;method_12787(Ljava/util/List;Lnet/minecraft/class_2540;)V
named entriesToPacket
Lnet/minecraft/entity/data/DataTracker;entriesToPacket(Ljava/util/List;Lnet/minecraft/network/PacketByteBuf;)V
-
getDirtyEntries
- Mappings:
Namespace Name Mixin selector official b
Lxs;b()Ljava/util/List;
intermediary method_12781
Lnet/minecraft/class_2945;method_12781()Ljava/util/List;
named getDirtyEntries
Lnet/minecraft/entity/data/DataTracker;getDirtyEntries()Ljava/util/List;
-
getAllEntries
- Mappings:
Namespace Name Mixin selector official c
Lxs;c()Ljava/util/List;
intermediary method_12793
Lnet/minecraft/class_2945;method_12793()Ljava/util/List;
named getAllEntries
Lnet/minecraft/entity/data/DataTracker;getAllEntries()Ljava/util/List;
-
writeEntryToPacket
- Mappings:
Namespace Name Mixin selector official a
Lxs;a(Lpn;Lxs$a;)V
intermediary method_12782
Lnet/minecraft/class_2945;method_12782(Lnet/minecraft/class_2540;Lnet/minecraft/class_2945$class_2946;)V
named writeEntryToPacket
Lnet/minecraft/entity/data/DataTracker;writeEntryToPacket(Lnet/minecraft/network/PacketByteBuf;Lnet/minecraft/entity/data/DataTracker$Entry;)V
-
deserializePacket
- Mappings:
Namespace Name Mixin selector official a
Lxs;a(Lpn;)Ljava/util/List;
intermediary method_12788
Lnet/minecraft/class_2945;method_12788(Lnet/minecraft/class_2540;)Ljava/util/List;
named deserializePacket
Lnet/minecraft/entity/data/DataTracker;deserializePacket(Lnet/minecraft/network/PacketByteBuf;)Ljava/util/List;
-
entryFromPacket
private static <T> DataTracker.Entry<T> entryFromPacket(PacketByteBuf buf, int int2, TrackedDataHandler<T> trackedDataHandler) - Mappings:
Namespace Name Mixin selector official a
Lxs;a(Lpn;ILxq;)Lxs$a;
intermediary method_12777
Lnet/minecraft/class_2945;method_12777(Lnet/minecraft/class_2540;ILnet/minecraft/class_2941;)Lnet/minecraft/class_2945$class_2946;
named entryFromPacket
Lnet/minecraft/entity/data/DataTracker;entryFromPacket(Lnet/minecraft/network/PacketByteBuf;ILnet/minecraft/entity/data/TrackedDataHandler;)Lnet/minecraft/entity/data/DataTracker$Entry;
-
writeUpdatedEntries
- Mappings:
Namespace Name Mixin selector official a
Lxs;a(Ljava/util/List;)V
intermediary method_12779
Lnet/minecraft/class_2945;method_12779(Ljava/util/List;)V
named writeUpdatedEntries
Lnet/minecraft/entity/data/DataTracker;writeUpdatedEntries(Ljava/util/List;)V
-
copyToFrom
- Mappings:
Namespace Name Mixin selector official a
Lxs;a(Lxs$a;Lxs$a;)V
intermediary method_12785
Lnet/minecraft/class_2945;method_12785(Lnet/minecraft/class_2945$class_2946;Lnet/minecraft/class_2945$class_2946;)V
named copyToFrom
Lnet/minecraft/entity/data/DataTracker;copyToFrom(Lnet/minecraft/entity/data/DataTracker$Entry;Lnet/minecraft/entity/data/DataTracker$Entry;)V
-
isEmpty
public boolean isEmpty()- Mappings:
Namespace Name Mixin selector official d
Lxs;d()Z
intermediary method_12790
Lnet/minecraft/class_2945;method_12790()Z
named isEmpty
Lnet/minecraft/entity/data/DataTracker;isEmpty()Z
-
clearDirty
public void clearDirty()- Mappings:
Namespace Name Mixin selector official e
Lxs;e()V
intermediary method_12792
Lnet/minecraft/class_2945;method_12792()V
named clearDirty
Lnet/minecraft/entity/data/DataTracker;clearDirty()V
-