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/BufferAllocatorintermediary net/minecraft/class_9799official fbf
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MemoryUtil.MemoryAllocatorprivate intprivate static final intprivate static final Loggerprivate static final intprivate int(package private) longprivate intprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/util/BufferAllocator;LOGGER:Lorg/slf4j/Logger;intermediary field_52078Lnet/minecraft/class_9799;field_52078:Lorg/slf4j/Logger;official aLfbf;a:Lorg/slf4j/Logger;
-
allocator
- Mappings:
Namespace Name Mixin selector named allocatorLnet/minecraft/client/util/BufferAllocator;allocator:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;intermediary field_52079Lnet/minecraft/class_9799;field_52079:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;official bLfbf;b:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;
-
MIN_GROWTH
private static final int MIN_GROWTH- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_GROWTHLnet/minecraft/client/util/BufferAllocator;MIN_GROWTH:Iintermediary field_52080Lnet/minecraft/class_9799;field_52080:Iofficial cLfbf;c:I
-
CLOSED
private static final int CLOSED- See Also:
- Mappings:
Namespace Name Mixin selector named CLOSEDLnet/minecraft/client/util/BufferAllocator;CLOSED:Iintermediary field_52081Lnet/minecraft/class_9799;field_52081:Iofficial dLfbf;d:I
-
pointer
long pointer- Mappings:
Namespace Name Mixin selector named pointerLnet/minecraft/client/util/BufferAllocator;pointer:Jintermediary field_52082Lnet/minecraft/class_9799;field_52082:Jofficial eLfbf;e:J
-
size
private int size- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/client/util/BufferAllocator;size:Iintermediary field_52083Lnet/minecraft/class_9799;field_52083:Iofficial fLfbf;f:I
-
offset
private int offset- Mappings:
Namespace Name Mixin selector named offsetLnet/minecraft/client/util/BufferAllocator;offset:Iintermediary field_52084Lnet/minecraft/class_9799;field_52084:Iofficial gLfbf;g:I
-
prevOffset
private int prevOffset- Mappings:
Namespace Name Mixin selector named prevOffsetLnet/minecraft/client/util/BufferAllocator;prevOffset:Iintermediary field_52085Lnet/minecraft/class_9799;field_52085:Iofficial hLfbf;h:I
-
refCount
private int refCount- Mappings:
Namespace Name Mixin selector named refCountLnet/minecraft/client/util/BufferAllocator;refCount:Iintermediary field_52086Lnet/minecraft/class_9799;field_52086:Iofficial iLfbf;i:I
-
clearCount
private int clearCount- Mappings:
Namespace Name Mixin selector named clearCountLnet/minecraft/client/util/BufferAllocator;clearCount:Iintermediary field_52087Lnet/minecraft/class_9799;field_52087:Iofficial jLfbf;j:I
-
-
Constructor Details
-
BufferAllocator
public BufferAllocator(int size) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/util/BufferAllocator;<init>(I)Vintermediary <init>Lnet/minecraft/class_9799;<init>(I)Vofficial <init>Lfbf;<init>(I)V
-
-
Method Details
-
allocate
public long allocate(int size) - Mappings:
Namespace Name Mixin selector named allocateLnet/minecraft/client/util/BufferAllocator;allocate(I)Jintermediary method_60808Lnet/minecraft/class_9799;method_60808(I)Jofficial aLfbf;a(I)J
-
growIfNecessary
private void growIfNecessary(int targetSize) - Mappings:
Namespace Name Mixin selector named growIfNecessaryLnet/minecraft/client/util/BufferAllocator;growIfNecessary(I)Vintermediary method_60810Lnet/minecraft/class_9799;method_60810(I)Vofficial bLfbf;b(I)V
-
grow
private void grow(int targetSize) - Mappings:
Namespace Name Mixin selector named growLnet/minecraft/client/util/BufferAllocator;grow(I)Vintermediary method_60812Lnet/minecraft/class_9799;method_60812(I)Vofficial cLfbf;c(I)V
-
getAllocated
- Mappings:
Namespace Name Mixin selector named getAllocatedLnet/minecraft/client/util/BufferAllocator;getAllocated()Lnet/minecraft/client/util/BufferAllocator$CloseableBuffer;intermediary method_60807Lnet/minecraft/class_9799;method_60807()Lnet/minecraft/class_9799$class_9800;official aLfbf;a()Lfbf$a;
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector named clearLnet/minecraft/client/util/BufferAllocator;clear()Vintermediary method_60809Lnet/minecraft/class_9799;method_60809()Vofficial bLfbf;b()V
-
reset
public void reset()- Mappings:
Namespace Name Mixin selector named resetLnet/minecraft/client/util/BufferAllocator;reset()Vintermediary method_60811Lnet/minecraft/class_9799;method_60811()Vofficial cLfbf;c()V
-
clearCountEquals
boolean clearCountEquals(int clearCount) - Mappings:
Namespace Name Mixin selector named clearCountEqualsLnet/minecraft/client/util/BufferAllocator;clearCountEquals(I)Zintermediary method_60814Lnet/minecraft/class_9799;method_60814(I)Zofficial dLfbf;d(I)Z
-
clearIfUnreferenced
void clearIfUnreferenced()- Mappings:
Namespace Name Mixin selector named clearIfUnreferencedLnet/minecraft/client/util/BufferAllocator;clearIfUnreferenced()Vintermediary method_60813Lnet/minecraft/class_9799;method_60813()Vofficial dLfbf;d()V
-
forceClear
private void forceClear()- Mappings:
Namespace Name Mixin selector named forceClearLnet/minecraft/client/util/BufferAllocator;forceClear()Vintermediary method_60815Lnet/minecraft/class_9799;method_60815()Vofficial eLfbf;e()V
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
ensureNotFreed
private void ensureNotFreed()- Mappings:
Namespace Name Mixin selector named ensureNotFreedLnet/minecraft/client/util/BufferAllocator;ensureNotFreed()Vintermediary method_60816Lnet/minecraft/class_9799;method_60816()Vofficial fLfbf;f()V
-