Class DataTracker

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

public class DataTracker
extends Object
Mappings:
Namespace Name
official vn
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 Lvn;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

      private static final Map<Class<? extends Entity>,​Integer> TRACKED_ENTITIES
      Mappings:
      Namespace Name Mixin selector
      official b Lvn;b:Ljava/util/Map;
      intermediary field_13332 Lnet/minecraft/class_2945;field_13332:Ljava/util/Map;
      named TRACKED_ENTITIES Lnet/minecraft/entity/data/DataTracker;TRACKED_ENTITIES:Ljava/util/Map;
    • trackedEntity

      private final Entity trackedEntity
      Mappings:
      Namespace Name Mixin selector
      official c Lvn;c:Laqv;
      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 Map<Integer,​DataTracker.Entry<?>> entries
      Mappings:
      Namespace Name Mixin selector
      official d Lvn;d:Ljava/util/Map;
      intermediary field_13331 Lnet/minecraft/class_2945;field_13331:Ljava/util/Map;
      named entries Lnet/minecraft/entity/data/DataTracker;entries:Ljava/util/Map;
    • lock

      private final ReadWriteLock lock
      Mappings:
      Namespace Name Mixin selector
      official e Lvn;e: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 f Lvn;f: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 g Lvn;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> Lvn;<init>(Laqv;)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 Lvn;a(Ljava/lang/Class;Lvl;)Lvk;
      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 Lvn;a(Lvk;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> trackedData, T t)
      Mappings:
      Namespace Name Mixin selector
      official c Lvn;c(Lvk;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

      private <T> DataTracker.Entry<T> getEntry​(TrackedData<T> trackedData)
      Mappings:
      Namespace Name Mixin selector
      official b Lvn;b(Lvk;)Lvn$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 a Lvn;a(Lvk;)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 Lvn;b(Lvk;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 Lvn;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​(List<DataTracker.Entry<?>> list, PacketByteBuf packetByteBuf)
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;a(Ljava/util/List;Lnw;)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

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

      @Nullable public List<DataTracker.Entry<?>> getAllEntries()
      Mappings:
      Namespace Name Mixin selector
      official c Lvn;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

      private static <T> void writeEntryToPacket​(PacketByteBuf buf, DataTracker.Entry<T> entry)
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;a(Lnw;Lvn$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

      @Nullable public static List<DataTracker.Entry<?>> deserializePacket​(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;a(Lnw;)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 Lvn;a(Lnw;ILvl;)Lvn$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

      @Environment(CLIENT) public void writeUpdatedEntries​(List<DataTracker.Entry<?>> list)
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;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

      @Environment(CLIENT) private <T> void copyToFrom​(DataTracker.Entry<T> entry, DataTracker.Entry<?> entry2)
      Mappings:
      Namespace Name Mixin selector
      official a Lvn;a(Lvn$a;Lvn$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 Lvn;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 Lvn;e()V
      intermediary method_12792 Lnet/minecraft/class_2945;method_12792()V
      named clearDirty Lnet/minecraft/entity/data/DataTracker;clearDirty()V