Interface TrackedDataHandler<T>

All Known Subinterfaces:
TrackedDataHandler.ImmutableHandler<T>

public interface TrackedDataHandler<T>
Mappings:
Namespace Name
official abz
intermediary net/minecraft/class_2941
named net/minecraft/entity/data/TrackedDataHandler
  • Method Details

    • write

      void write(PacketByteBuf buf, T value)
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(Lsf;Ljava/lang/Object;)V
      intermediary method_12715 Lnet/minecraft/class_2941;method_12715(Lnet/minecraft/class_2540;Ljava/lang/Object;)V
      named write Lnet/minecraft/entity/data/TrackedDataHandler;write(Lnet/minecraft/network/PacketByteBuf;Ljava/lang/Object;)V
    • read

      T read(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(Lsf;)Ljava/lang/Object;
      intermediary method_12716 Lnet/minecraft/class_2941;method_12716(Lnet/minecraft/class_2540;)Ljava/lang/Object;
      named read Lnet/minecraft/entity/data/TrackedDataHandler;read(Lnet/minecraft/network/PacketByteBuf;)Ljava/lang/Object;
    • create

      default TrackedData<T> create(int id)
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(I)Laby;
      intermediary method_12717 Lnet/minecraft/class_2941;method_12717(I)Lnet/minecraft/class_2940;
      named create Lnet/minecraft/entity/data/TrackedDataHandler;create(I)Lnet/minecraft/entity/data/TrackedData;
    • copy

      T copy(T value)
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(Ljava/lang/Object;)Ljava/lang/Object;
      intermediary method_12714 Lnet/minecraft/class_2941;method_12714(Ljava/lang/Object;)Ljava/lang/Object;
      named copy Lnet/minecraft/entity/data/TrackedDataHandler;copy(Ljava/lang/Object;)Ljava/lang/Object;
    • of

      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(Lsf$b;Lsf$a;)Labz;
      intermediary method_43242 Lnet/minecraft/class_2941;method_43242(Lnet/minecraft/class_2540$class_7462;Lnet/minecraft/class_2540$class_7461;)Lnet/minecraft/class_2941;
      named of Lnet/minecraft/entity/data/TrackedDataHandler;of(Lnet/minecraft/network/PacketByteBuf$PacketWriter;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Lnet/minecraft/entity/data/TrackedDataHandler;
    • ofOptional

      static <T> TrackedDataHandler<Optional<T>> ofOptional(PacketByteBuf.PacketWriter<T> writer, PacketByteBuf.PacketReader<T> reader)
      Mappings:
      Namespace Name Mixin selector
      official b Labz;b(Lsf$b;Lsf$a;)Labz;
      intermediary method_43243 Lnet/minecraft/class_2941;method_43243(Lnet/minecraft/class_2540$class_7462;Lnet/minecraft/class_2540$class_7461;)Lnet/minecraft/class_2941;
      named ofOptional Lnet/minecraft/entity/data/TrackedDataHandler;ofOptional(Lnet/minecraft/network/PacketByteBuf$PacketWriter;Lnet/minecraft/network/PacketByteBuf$PacketReader;)Lnet/minecraft/entity/data/TrackedDataHandler;
    • ofEnum

      static <T extends Enum<T>> TrackedDataHandler<T> ofEnum(Class<T> enum_)
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(Ljava/lang/Class;)Labz;
      intermediary method_43240 Lnet/minecraft/class_2941;method_43240(Ljava/lang/Class;)Lnet/minecraft/class_2941;
      named ofEnum Lnet/minecraft/entity/data/TrackedDataHandler;ofEnum(Ljava/lang/Class;)Lnet/minecraft/entity/data/TrackedDataHandler;
    • of

      static <T> TrackedDataHandler<T> of(IndexedIterable<T> registry)
      Mappings:
      Namespace Name Mixin selector
      official a Labz;a(Lhj;)Labz;
      intermediary method_43237 Lnet/minecraft/class_2941;method_43237(Lnet/minecraft/class_2359;)Lnet/minecraft/class_2941;
      named of Lnet/minecraft/entity/data/TrackedDataHandler;of(Lnet/minecraft/util/collection/IndexedIterable;)Lnet/minecraft/entity/data/TrackedDataHandler;