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 fwv
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MemoryUtil.MemoryAllocatorprivate intprivate static final intprivate static final longprivate longprivate static final Loggerprivate final longprivate static final com.mojang.jtracy.MemoryPoolprivate static final intprivate long(package private) longprivate intprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongallocate(int size) voidclear()(package private) booleanclearCountEquals(int clearCount) (package private) voidvoidclose()private voidstatic BufferAllocatorfixedSized(int size) private voidprivate voidgrow(long newSize) private voidgrowIfNecessary(long newSize) voidreset()
-
Field Details
-
MEMORY_POOL
private static final com.mojang.jtracy.MemoryPool MEMORY_POOL- Mappings:
Namespace Name Mixin selector named MEMORY_POOLLnet/minecraft/client/util/BufferAllocator;MEMORY_POOL:Lcom/mojang/jtracy/MemoryPool;intermediary field_54266Lnet/minecraft/class_9799;field_54266:Lcom/mojang/jtracy/MemoryPool;official aLfwv;a:Lcom/mojang/jtracy/MemoryPool;
-
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 bLfwv;b: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 cLfwv;c:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;
-
field_61052
private static final long field_61052- See Also:
- Mappings:
Namespace Name Mixin selector named field_61052Lnet/minecraft/client/util/BufferAllocator;field_61052:Jintermediary field_61052Lnet/minecraft/class_9799;field_61052:Jofficial dLfwv;d:J
-
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 eLfwv;e: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 fLfwv;f: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 gLfwv;g:J
-
size
private long size- Mappings:
Namespace Name Mixin selector named sizeLnet/minecraft/client/util/BufferAllocator;size:Jintermediary field_52083Lnet/minecraft/class_9799;field_52083:Jofficial hLfwv;h:J
-
maxSize
private final long maxSize- Mappings:
Namespace Name Mixin selector named maxSizeLnet/minecraft/client/util/BufferAllocator;maxSize:Jintermediary field_61053Lnet/minecraft/class_9799;field_61053:Jofficial iLfwv;i:J
-
offset
private long offset- Mappings:
Namespace Name Mixin selector named offsetLnet/minecraft/client/util/BufferAllocator;offset:Jintermediary field_52084Lnet/minecraft/class_9799;field_52084:Jofficial jLfwv;j:J
-
lastOffset
private long lastOffset- Mappings:
Namespace Name Mixin selector named lastOffsetLnet/minecraft/client/util/BufferAllocator;lastOffset:Jintermediary field_52085Lnet/minecraft/class_9799;field_52085:Jofficial kLfwv;k:J
-
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 lLfwv;l: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 mLfwv;m:I
-
-
Constructor Details
-
BufferAllocator
public BufferAllocator(int size, long maxSize) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/util/BufferAllocator;<init>(IJ)Vintermediary <init>Lnet/minecraft/class_9799;<init>(IJ)Vofficial <init>Lfwv;<init>(IJ)V
-
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>Lfwv;<init>(I)V
-
-
Method Details
-
fixedSized
- Mappings:
Namespace Name Mixin selector named fixedSizedLnet/minecraft/client/util/BufferAllocator;fixedSized(I)Lnet/minecraft/client/util/BufferAllocator;intermediary method_72201Lnet/minecraft/class_9799;method_72201(I)Lnet/minecraft/class_9799;official aLfwv;a(I)Lfwv;
-
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 bLfwv;b(I)J
-
growIfNecessary
private void growIfNecessary(long newSize) - Mappings:
Namespace Name Mixin selector named growIfNecessaryLnet/minecraft/client/util/BufferAllocator;growIfNecessary(J)Vintermediary method_60810Lnet/minecraft/class_9799;method_60810(J)Vofficial aLfwv;a(J)V
-
grow
private void grow(long newSize) - Mappings:
Namespace Name Mixin selector named growLnet/minecraft/client/util/BufferAllocator;grow(J)Vintermediary method_60812Lnet/minecraft/class_9799;method_60812(J)Vofficial bLfwv;b(J)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 aLfwv;a()Lfwv$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 bLfwv;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 cLfwv;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 cLfwv;c(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 dLfwv;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 eLfwv;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 fLfwv;f()V
-