Class Pool

java.lang.Object
net.minecraft.client.util.Pool
All Implemented Interfaces:
AutoCloseable, ObjectAllocator

@Environment(CLIENT) public class Pool extends Object implements ObjectAllocator, AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/util/Pool
intermediary net/minecraft/class_9920
official ffz
  • Field Details

    • lifespan

      private final int lifespan
      Mappings:
      Namespace Name Mixin selector
      named lifespan Lnet/minecraft/client/util/Pool;lifespan:I
      intermediary field_52736 Lnet/minecraft/class_9920;field_52736:I
      official b Lffz;b:I
    • entries

      private final Deque<Pool.Entry<?>> entries
      Mappings:
      Namespace Name Mixin selector
      named entries Lnet/minecraft/client/util/Pool;entries:Ljava/util/Deque;
      intermediary field_52737 Lnet/minecraft/class_9920;field_52737:Ljava/util/Deque;
      official c Lffz;c:Ljava/util/Deque;
  • Constructor Details

    • Pool

      public Pool(int lifespan)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/util/Pool;<init>(I)V
      intermediary <init> Lnet/minecraft/class_9920;<init>(I)V
      official <init> Lffz;<init>(I)V
  • Method Details

    • decrementLifespan

      public void decrementLifespan()
      Mappings:
      Namespace Name Mixin selector
      named decrementLifespan Lnet/minecraft/client/util/Pool;decrementLifespan()V
      intermediary method_61947 Lnet/minecraft/class_9920;method_61947()V
      official a Lffz;a()V
    • acquire

      public <T> T acquire(ClosableFactory<T> factory)
      Specified by:
      acquire in interface ObjectAllocator
      Mappings:
      Namespace Name Mixin selector
      named acquire Lnet/minecraft/client/util/ObjectAllocator;acquire(Lnet/minecraft/client/util/ClosableFactory;)Ljava/lang/Object;
      intermediary method_61948 Lnet/minecraft/class_9922;method_61948(Lnet/minecraft/class_9924;)Ljava/lang/Object;
      official a Lfga;a(Lfgc;)Ljava/lang/Object;
    • release

      public <T> void release(ClosableFactory<T> factory, T value)
      Specified by:
      release in interface ObjectAllocator
      Mappings:
      Namespace Name Mixin selector
      named release Lnet/minecraft/client/util/ObjectAllocator;release(Lnet/minecraft/client/util/ClosableFactory;Ljava/lang/Object;)V
      intermediary method_61949 Lnet/minecraft/class_9922;method_61949(Lnet/minecraft/class_9924;Ljava/lang/Object;)V
      official a Lfga;a(Lfgc;Ljava/lang/Object;)V
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/client/util/Pool;clear()V
      intermediary method_61950 Lnet/minecraft/class_9920;method_61950()V
      official b Lffz;b()V
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getEntries

      protected Collection<Pool.Entry<?>> getEntries()
      Mappings:
      Namespace Name Mixin selector
      named getEntries Lnet/minecraft/client/util/Pool;getEntries()Ljava/util/Collection;
      intermediary method_61951 Lnet/minecraft/class_9920;method_61951()Ljava/util/Collection;
      official c Lffz;c()Ljava/util/Collection;