Class BufferAllocator

java.lang.Object
net.minecraft.client.util.BufferAllocator
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class BufferAllocator extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/util/BufferAllocator
intermediary net/minecraft/class_9799
official fnz
  • Field Details

    • MEMORY_POOL

      private static final com.mojang.jtracy.MemoryPool MEMORY_POOL
      Mappings:
      Namespace Name Mixin selector
      named MEMORY_POOL Lnet/minecraft/client/util/BufferAllocator;MEMORY_POOL:Lcom/mojang/jtracy/MemoryPool;
      intermediary field_54266 Lnet/minecraft/class_9799;field_54266:Lcom/mojang/jtracy/MemoryPool;
      official a Lfnz;a:Lcom/mojang/jtracy/MemoryPool;
    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/client/util/BufferAllocator;LOGGER:Lorg/slf4j/Logger;
      intermediary field_52078 Lnet/minecraft/class_9799;field_52078:Lorg/slf4j/Logger;
      official b Lfnz;b:Lorg/slf4j/Logger;
    • ALLOCATOR

      private static final MemoryUtil.MemoryAllocator ALLOCATOR
      Mappings:
      Namespace Name Mixin selector
      named ALLOCATOR Lnet/minecraft/client/util/BufferAllocator;ALLOCATOR:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;
      intermediary field_52079 Lnet/minecraft/class_9799;field_52079:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;
      official c Lfnz;c:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;
    • field_61052

      private static final long field_61052
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_61052 Lnet/minecraft/client/util/BufferAllocator;field_61052:J
      intermediary field_61052 Lnet/minecraft/class_9799;field_61052:J
      official d Lfnz;d:J
    • MIN_GROWTH

      private static final int MIN_GROWTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MIN_GROWTH Lnet/minecraft/client/util/BufferAllocator;MIN_GROWTH:I
      intermediary field_52080 Lnet/minecraft/class_9799;field_52080:I
      official e Lfnz;e:I
    • CLOSED

      private static final int CLOSED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named CLOSED Lnet/minecraft/client/util/BufferAllocator;CLOSED:I
      intermediary field_52081 Lnet/minecraft/class_9799;field_52081:I
      official f Lfnz;f:I
    • pointer

      long pointer
      Mappings:
      Namespace Name Mixin selector
      named pointer Lnet/minecraft/client/util/BufferAllocator;pointer:J
      intermediary field_52082 Lnet/minecraft/class_9799;field_52082:J
      official g Lfnz;g:J
    • size

      private long size
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/client/util/BufferAllocator;size:J
      intermediary field_52083 Lnet/minecraft/class_9799;field_52083:J
      official h Lfnz;h:J
    • field_61053

      private final long field_61053
      Mappings:
      Namespace Name Mixin selector
      named field_61053 Lnet/minecraft/client/util/BufferAllocator;field_61053:J
      intermediary field_61053 Lnet/minecraft/class_9799;field_61053:J
      official i Lfnz;i:J
    • offset

      private long offset
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/client/util/BufferAllocator;offset:J
      intermediary field_52084 Lnet/minecraft/class_9799;field_52084:J
      official j Lfnz;j:J
    • lastOffset

      private long lastOffset
      Mappings:
      Namespace Name Mixin selector
      named lastOffset Lnet/minecraft/client/util/BufferAllocator;lastOffset:J
      intermediary field_52085 Lnet/minecraft/class_9799;field_52085:J
      official k Lfnz;k:J
    • refCount

      private int refCount
      Mappings:
      Namespace Name Mixin selector
      named refCount Lnet/minecraft/client/util/BufferAllocator;refCount:I
      intermediary field_52086 Lnet/minecraft/class_9799;field_52086:I
      official l Lfnz;l:I
    • clearCount

      private int clearCount
      Mappings:
      Namespace Name Mixin selector
      named clearCount Lnet/minecraft/client/util/BufferAllocator;clearCount:I
      intermediary field_52087 Lnet/minecraft/class_9799;field_52087:I
      official m Lfnz;m:I
  • Constructor Details

    • BufferAllocator

      public BufferAllocator(int int2, long long2)
    • BufferAllocator

      public BufferAllocator(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/util/BufferAllocator;<init>(I)V
      intermediary <init> Lnet/minecraft/class_9799;<init>(I)V
      official <init> Lfnz;<init>(I)V
  • Method Details

    • method_72201

      public static BufferAllocator method_72201(int int2)
      Mappings:
      Namespace Name Mixin selector
      named method_72201 Lnet/minecraft/client/util/BufferAllocator;method_72201(I)Lnet/minecraft/client/util/BufferAllocator;
      intermediary method_72201 Lnet/minecraft/class_9799;method_72201(I)Lnet/minecraft/class_9799;
      official a Lfnz;a(I)Lfnz;
    • allocate

      public long allocate(int size)
      Mappings:
      Namespace Name Mixin selector
      named allocate Lnet/minecraft/client/util/BufferAllocator;allocate(I)J
      intermediary method_60808 Lnet/minecraft/class_9799;method_60808(I)J
      official b Lfnz;b(I)J
    • growIfNecessary

      private void growIfNecessary(long long2)
      Mappings:
      Namespace Name Mixin selector
      named growIfNecessary Lnet/minecraft/client/util/BufferAllocator;growIfNecessary(J)V
      intermediary method_60810 Lnet/minecraft/class_9799;method_60810(J)V
      official a Lfnz;a(J)V
    • grow

      private void grow(long long2)
      Mappings:
      Namespace Name Mixin selector
      named grow Lnet/minecraft/client/util/BufferAllocator;grow(J)V
      intermediary method_60812 Lnet/minecraft/class_9799;method_60812(J)V
      official b Lfnz;b(J)V
    • getAllocated

      Mappings:
      Namespace Name Mixin selector
      named getAllocated Lnet/minecraft/client/util/BufferAllocator;getAllocated()Lnet/minecraft/client/util/BufferAllocator$CloseableBuffer;
      intermediary method_60807 Lnet/minecraft/class_9799;method_60807()Lnet/minecraft/class_9799$class_9800;
      official a Lfnz;a()Lfnz$a;
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/client/util/BufferAllocator;clear()V
      intermediary method_60809 Lnet/minecraft/class_9799;method_60809()V
      official b Lfnz;b()V
    • reset

      public void reset()
      Mappings:
      Namespace Name Mixin selector
      named reset Lnet/minecraft/client/util/BufferAllocator;reset()V
      intermediary method_60811 Lnet/minecraft/class_9799;method_60811()V
      official c Lfnz;c()V
    • clearCountEquals

      boolean clearCountEquals(int clearCount)
      Mappings:
      Namespace Name Mixin selector
      named clearCountEquals Lnet/minecraft/client/util/BufferAllocator;clearCountEquals(I)Z
      intermediary method_60814 Lnet/minecraft/class_9799;method_60814(I)Z
      official c Lfnz;c(I)Z
    • clearIfUnreferenced

      void clearIfUnreferenced()
      Mappings:
      Namespace Name Mixin selector
      named clearIfUnreferenced Lnet/minecraft/client/util/BufferAllocator;clearIfUnreferenced()V
      intermediary method_60813 Lnet/minecraft/class_9799;method_60813()V
      official d Lfnz;d()V
    • forceClear

      private void forceClear()
      Mappings:
      Namespace Name Mixin selector
      named forceClear Lnet/minecraft/client/util/BufferAllocator;forceClear()V
      intermediary method_60815 Lnet/minecraft/class_9799;method_60815()V
      official e Lfnz;e()V
    • close

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

      private void ensureNotFreed()
      Mappings:
      Namespace Name Mixin selector
      named ensureNotFreed Lnet/minecraft/client/util/BufferAllocator;ensureNotFreed()V
      intermediary method_60816 Lnet/minecraft/class_9799;method_60816()V
      official f Lfnz;f()V