Class DataTracker

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

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

    • LOGGER

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

      private final Entity trackedEntity
      Mappings:
      Namespace Name Mixin selector
      official e Laam;e:Lbbn;
      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 f Laam;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

      private final ReadWriteLock lock
      Mappings:
      Namespace Name Mixin selector
      official g Laam;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 Laam;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 Laam;i: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> Laam;<init>(Lbbn;)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 Laam;a(Ljava/lang/Class;Laak;)Laaj;
      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 Laam;a(Laaj;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 Laam;c(Laaj;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 Laam;b(Laaj;)Laam$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 Laam;a(Laaj;)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 Laam;b(Laaj;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 Laam;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 Laam;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

      @Nullable public @Nullable List<DataTracker.Entry<?>> getDirtyEntries()
      Mappings:
      Namespace Name Mixin selector
      official b Laam;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 @Nullable List<DataTracker.Entry<?>> getAllEntries()
      Mappings:
      Namespace Name Mixin selector
      official c Laam;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 Laam;a(Lqx;Laam$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 @Nullable List<DataTracker.Entry<?>> deserializePacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Laam;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 Laam;a(Lqx;ILaak;)Laam$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

      public void writeUpdatedEntries(List<DataTracker.Entry<?>> entries)
      Mappings:
      Namespace Name Mixin selector
      official a Laam;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.Entry<?> from)
      Mappings:
      Namespace Name Mixin selector
      official a Laam;a(Laam$a;Laam$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 Laam;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 Laam;e()V
      intermediary method_12792 Lnet/minecraft/class_2945;method_12792()V
      named clearDirty Lnet/minecraft/entity/data/DataTracker;clearDirty()V