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 fgo
  • 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 Lfgo;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 Lfgo;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 Lfgo;c:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;
    • 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 d Lfgo;d: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 e Lfgo;e: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 f Lfgo;f:J
    • size

      private int size
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/client/util/BufferAllocator;size:I
      intermediary field_52083 Lnet/minecraft/class_9799;field_52083:I
      official g Lfgo;g:I
    • offset

      private int offset
      Mappings:
      Namespace Name Mixin selector
      named offset Lnet/minecraft/client/util/BufferAllocator;offset:I
      intermediary field_52084 Lnet/minecraft/class_9799;field_52084:I
      official h Lfgo;h:I
    • prevOffset

      private int prevOffset
      Mappings:
      Namespace Name Mixin selector
      named prevOffset Lnet/minecraft/client/util/BufferAllocator;prevOffset:I
      intermediary field_52085 Lnet/minecraft/class_9799;field_52085:I
      official i Lfgo;i:I
    • 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 j Lfgo;j: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 k Lfgo;k:I
  • Constructor Details

    • 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> Lfgo;<init>(I)V
  • Method Details

    • 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 a Lfgo;a(I)J
    • growIfNecessary

      private void growIfNecessary(int targetSize)
      Mappings:
      Namespace Name Mixin selector
      named growIfNecessary Lnet/minecraft/client/util/BufferAllocator;growIfNecessary(I)V
      intermediary method_60810 Lnet/minecraft/class_9799;method_60810(I)V
      official b Lfgo;b(I)V
    • grow

      private void grow(int targetSize)
      Mappings:
      Namespace Name Mixin selector
      named grow Lnet/minecraft/client/util/BufferAllocator;grow(I)V
      intermediary method_60812 Lnet/minecraft/class_9799;method_60812(I)V
      official c Lfgo;c(I)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 Lfgo;a()Lfgo$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 Lfgo;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 Lfgo;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 d Lfgo;d(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 Lfgo;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 Lfgo;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 Lfgo;f()V