Package net.minecraft.client.util
Class BufferAllocator
java.lang.Object
net.minecraft.client.util.BufferAllocator
- All Implemented Interfaces:
- AutoCloseable
- Mappings:
- Namespace - Name - named - net/minecraft/client/util/BufferAllocator- intermediary - net/minecraft/class_9799- official - ffs
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final MemoryUtil.MemoryAllocatorprivate intprivate static final intprivate static final Loggerprivate static final com.mojang.jtracy.MemoryPoolprivate static final intprivate int(package private) longprivate intprivate intprivate int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionlongallocate(int size) voidclear()(package private) booleanclearCountEquals(int clearCount) (package private) voidvoidclose()private voidprivate voidprivate voidgrow(int targetSize) private voidgrowIfNecessary(int targetSize) voidreset()
- 
Field Details- 
MEMORY_POOLprivate 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- Lffs;a:Lcom/mojang/jtracy/MemoryPool;
 
- 
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- Lffs;b:Lorg/slf4j/Logger;
 
- 
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- Lffs;c:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;
 
- 
MIN_GROWTHprivate 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- Lffs;d:I
 
- 
CLOSEDprivate 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- Lffs;e:I
 
- 
pointerlong 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- Lffs;f:J
 
- 
sizeprivate 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- Lffs;g:I
 
- 
offsetprivate 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- Lffs;h:I
 
- 
prevOffsetprivate 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- Lffs;i:I
 
- 
refCountprivate 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- Lffs;j:I
 
- 
clearCountprivate 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- Lffs;k:I
 
 
- 
- 
Constructor Details- 
BufferAllocatorpublic 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>- Lffs;<init>(I)V
 
 
- 
- 
Method Details- 
allocatepublic 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- Lffs;a(I)J
 
- 
growIfNecessaryprivate 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- Lffs;b(I)V
 
- 
growprivate 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- Lffs;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- Lffs;a()Lffs$a;
 
- 
clearpublic 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- Lffs;b()V
 
- 
resetpublic 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- Lffs;c()V
 
- 
clearCountEqualsboolean 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- Lffs;d(I)Z
 
- 
clearIfUnreferencedvoid 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- Lffs;d()V
 
- 
forceClearprivate 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- Lffs;e()V
 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
ensureNotFreedprivate 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- Lffs;f()V
 
 
-