Class DataTracker

java.lang.Object
net.minecraft.entity.data.DataTracker

public class DataTracker extends Object
Mappings:
Namespace Name
official agp
intermediary net/minecraft/class_2945
named net/minecraft/entity/data/DataTracker
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official a Lagp;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

      private static final Object2IntMap<Class<? extends Entity>> TRACKED_ENTITIES
      Mappings:
      Namespace Name Mixin selector
      official b Lagp;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;
    • MAX_DATA_VALUE_ID

      private static final int MAX_DATA_VALUE_ID
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lagp;c: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

      private final Entity trackedEntity
      Mappings:
      Namespace Name Mixin selector
      official d Lagp;d:Lblv;
      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

      private final Int2ObjectMap<DataTracker.Entry<?>> entries
      Mappings:
      Namespace Name Mixin selector
      official e Lagp;e: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

      private final ReadWriteLock lock
      Mappings:
      Namespace Name Mixin selector
      official f Lagp;f: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;
    • dirty

      private boolean dirty
      Mappings:
      Namespace Name Mixin selector
      official g Lagp;g:Z
      intermediary field_13329 Lnet/minecraft/class_2945;field_13329:Z
      named dirty Lnet/minecraft/entity/data/DataTracker;dirty:Z
  • Constructor Details

    • DataTracker

      public DataTracker(Entity trackedEntity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lagp;<init>(Lblv;)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 Lagp;a(Ljava/lang/Class;Lagn;)Lagm;
      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

      public <T> void startTracking(TrackedData<T> key, T initialValue)
      Mappings:
      Namespace Name Mixin selector
      official a Lagp;a(Lagm;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

      private <T> void addTrackedData(TrackedData<T> key, T value)
      Mappings:
      Namespace Name Mixin selector
      official c Lagp;c(Lagm;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
    • containsKey

      public <T> boolean containsKey(TrackedData<T> key)
      Mappings:
      Namespace Name Mixin selector
      official a Lagp;a(Lagm;)Z
      intermediary method_51696 Lnet/minecraft/class_2945;method_51696(Lnet/minecraft/class_2940;)Z
      named containsKey Lnet/minecraft/entity/data/DataTracker;containsKey(Lnet/minecraft/entity/data/TrackedData;)Z
    • getEntry

      private <T> DataTracker.Entry<T> getEntry(TrackedData<T> key)
      Mappings:
      Namespace Name Mixin selector
      official c Lagp;c(Lagm;)Lagp$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

      public <T> T get(TrackedData<T> data)
      Mappings:
      Namespace Name Mixin selector
      official b Lagp;b(Lagm;)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

      public <T> void set(TrackedData<T> key, T value)
      Mappings:
      Namespace Name Mixin selector
      official b Lagp;b(Lagm;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
    • set

      public <T> void set(TrackedData<T> key, T value, boolean force)
      Mappings:
      Namespace Name Mixin selector
      official a Lagp;a(Lagm;Ljava/lang/Object;Z)V
      intermediary method_49743 Lnet/minecraft/class_2945;method_49743(Lnet/minecraft/class_2940;Ljava/lang/Object;Z)V
      named set Lnet/minecraft/entity/data/DataTracker;set(Lnet/minecraft/entity/data/TrackedData;Ljava/lang/Object;Z)V
    • isDirty

      public boolean isDirty()
      Mappings:
      Namespace Name Mixin selector
      official a Lagp;a()Z
      intermediary method_12786 Lnet/minecraft/class_2945;method_12786()Z
      named isDirty Lnet/minecraft/entity/data/DataTracker;isDirty()Z
    • getDirtyEntries

      @Nullable public @Nullable List<DataTracker.SerializedEntry<?>> getDirtyEntries()
      Mappings:
      Namespace Name Mixin selector
      official b Lagp;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;
    • getChangedEntries

      @Nullable public @Nullable List<DataTracker.SerializedEntry<?>> getChangedEntries()
      Mappings:
      Namespace Name Mixin selector
      official c Lagp;c()Ljava/util/List;
      intermediary method_46357 Lnet/minecraft/class_2945;method_46357()Ljava/util/List;
      named getChangedEntries Lnet/minecraft/entity/data/DataTracker;getChangedEntries()Ljava/util/List;
    • writeUpdatedEntries

      public void writeUpdatedEntries(List<DataTracker.SerializedEntry<?>> entries)
      Mappings:
      Namespace Name Mixin selector
      official a Lagp;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

      private <T> void copyToFrom(DataTracker.Entry<T> to, DataTracker.SerializedEntry<?> from)
      Mappings:
      Namespace Name Mixin selector
      official a Lagp;a(Lagp$a;Lagp$b;)V
      intermediary method_12785 Lnet/minecraft/class_2945;method_12785(Lnet/minecraft/class_2945$class_2946;Lnet/minecraft/class_2945$class_7834;)V
      named copyToFrom Lnet/minecraft/entity/data/DataTracker;copyToFrom(Lnet/minecraft/entity/data/DataTracker$Entry;Lnet/minecraft/entity/data/DataTracker$SerializedEntry;)V
    • isEmpty

      public boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official d Lagp;d()Z
      intermediary method_12790 Lnet/minecraft/class_2945;method_12790()Z
      named isEmpty Lnet/minecraft/entity/data/DataTracker;isEmpty()Z