Package net.minecraft.entity.data
Class DataTracker
java.lang.Object
net.minecraft.entity.data.DataTracker
- Mappings:
Namespace Name official zu
intermediary net/minecraft/class_2945
named net/minecraft/entity/data/DataTracker
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private static final int
private final Int2ObjectMap<DataTracker.Entry<?>>
private final ReadWriteLock
private static final org.slf4j.Logger
private static final int
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
private static final org.slf4j.Logger LOGGER- Mappings:
Namespace Name Mixin selector official a
Lzu;a:Lorg/slf4j/Logger;
intermediary field_13334
Lnet/minecraft/class_2945;field_13334:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/entity/data/DataTracker;LOGGER:Lorg/slf4j/Logger;
-
TRACKED_ENTITIES
- Mappings:
Namespace Name Mixin selector official b
Lzu;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;
-
END_PACKET_WRITE
private static final int END_PACKET_WRITE- See Also:
- Mappings:
Namespace Name Mixin selector official c
Lzu;c:I
intermediary field_33377
Lnet/minecraft/class_2945;field_33377:I
named END_PACKET_WRITE
Lnet/minecraft/entity/data/DataTracker;END_PACKET_WRITE:I
-
MAX_DATA_VALUE_ID
private static final int MAX_DATA_VALUE_ID- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lzu;d:I
intermediary field_33378
Lnet/minecraft/class_2945;field_33378:I
named MAX_DATA_VALUE_ID
Lnet/minecraft/entity/data/DataTracker;MAX_DATA_VALUE_ID:I
-
trackedEntity
- Mappings:
Namespace Name Mixin selector official e
Lzu;e:Lbaq;
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
Lzu;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
Lzu;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
Lzu;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
Lzu;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>
Lzu;<init>(Lbaq;)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
Lzu;a(Ljava/lang/Class;Lzs;)Lzr;
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
Lzu;a(Lzr;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
Lzu;c(Lzr;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
Lzu;b(Lzr;)Lzu$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
Lzu;a(Lzr;)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
Lzu;b(Lzr;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
Lzu;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
Lzu;a(Ljava/util/List;Lqx;)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
Lzu;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
Lzu;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
Lzu;a(Lqx;Lzu$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
Lzu;a(Lqx;)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
Lzu;a(Lqx;ILzs;)Lzu$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
Lzu;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
Lzu;a(Lzu$a;Lzu$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
Lzu;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
Lzu;e()V
intermediary method_12792
Lnet/minecraft/class_2945;method_12792()V
named clearDirty
Lnet/minecraft/entity/data/DataTracker;clearDirty()V
-