Class DataTracker

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

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

    • LOGGER

      private static final Logger 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 Lajz;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 Lajz;b:I
    • CLASS_TO_LAST_ID

      static final Class2IntMap 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 Lajz;c:Laxf;
    • trackedEntity

      private final DataTracked 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 Lajz;d:Lajy;
    • entries

      private final DataTracker.Entry<?>[] 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 Lajz;e:[Lajz$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 Lajz;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> Lajz;<init>(Lajy;[Lajz$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 Lajz;a(Ljava/lang/Class;Lajw;)Lajv;
    • getEntry

      private <T> DataTracker.Entry<T> getEntry(TrackedData<T> key)
      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 Lajz;b(Lajv;)Lajz$b;
    • get

      public <T> T get(TrackedData<T> data)
      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 Lajz;a(Lajv;)Ljava/lang/Object;
    • set

      public <T> void set(TrackedData<T> key, T value)
      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 Lajz;a(Lajv;Ljava/lang/Object;)V
    • set

      public <T> void set(TrackedData<T> key, T value, boolean force)
      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 Lajz;a(Lajv;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 Lajz;a()Z
    • getDirtyEntries

      @Nullable public @Nullable List<DataTracker.SerializedEntry<?>> 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 Lajz;b()Ljava/util/List;
    • getChangedEntries

      @Nullable public @Nullable List<DataTracker.SerializedEntry<?>> 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 Lajz;c()Ljava/util/List;
    • writeUpdatedEntries

      public void writeUpdatedEntries(List<DataTracker.SerializedEntry<?>> entries)
      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 Lajz;a(Ljava/util/List;)V
    • copyToFrom

      private <T> void copyToFrom(DataTracker.Entry<T> to, DataTracker.SerializedEntry<?> from)
      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 Lajz;a(Lajz$b;Lajz$c;)V