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 fzi
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MemoryUtil.MemoryAllocatorprivate intprivate static final intprivate longprivate static final Loggerprivate static final longprivate 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 void@Nullable BufferAllocator.CloseableBufferprivate 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 aLfzi;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 bLfzi;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 cLfzi;c:Lorg/lwjgl/system/MemoryUtil$MemoryAllocator;
-
MAX_SIZE
private static final long MAX_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_SIZELnet/minecraft/client/util/BufferAllocator;MAX_SIZE:Jintermediary field_61052Lnet/minecraft/class_9799;field_61052:Jofficial dLfzi;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 eLfzi;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 fLfzi;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 gLfzi;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 hLfzi;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 iLfzi;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 jLfzi;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 kLfzi;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 lLfzi;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 mLfzi;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>Lfzi;<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>Lfzi;<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 aLfzi;a(I)Lfzi;
-
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 bLfzi;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 aLfzi;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 bLfzi;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 aLfzi;a()Lfzi$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 bLfzi;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 cLfzi;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 cLfzi;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 dLfzi;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 eLfzi;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 fLfzi;f()V
-