Class GpuBuffer

java.lang.Object
net.minecraft.client.gl.GpuBuffer
All Implemented Interfaces:
AutoCloseable

@Environment(CLIENT) public class GpuBuffer extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/client/gl/GpuBuffer
intermediary net/minecraft/class_10227
official fem
  • Field Details

    • MEMORY_POOL

      private static final com.mojang.jtracy.MemoryPool MEMORY_POOL
      Mappings:
      Namespace Name Mixin selector
      named MEMORY_POOL Lnet/minecraft/client/gl/GpuBuffer;MEMORY_POOL:Lcom/mojang/jtracy/MemoryPool;
      intermediary field_54352 Lnet/minecraft/class_10227;field_54352:Lcom/mojang/jtracy/MemoryPool;
      official c Lfem;c:Lcom/mojang/jtracy/MemoryPool;
    • target

      private final GlBufferTarget target
      Mappings:
      Namespace Name Mixin selector
      named target Lnet/minecraft/client/gl/GpuBuffer;target:Lnet/minecraft/client/gl/GlBufferTarget;
      intermediary field_54353 Lnet/minecraft/class_10227;field_54353:Lnet/minecraft/class_10226;
      official d Lfem;d:Lfek;
    • usage

      private final GlUsage usage
      Mappings:
      Namespace Name Mixin selector
      named usage Lnet/minecraft/client/gl/GpuBuffer;usage:Lnet/minecraft/client/gl/GlUsage;
      intermediary field_54354 Lnet/minecraft/class_10227;field_54354:Lnet/minecraft/class_8555;
      official e Lfem;e:Lfel;
    • closed

      private boolean closed
      Mappings:
      Namespace Name Mixin selector
      named closed Lnet/minecraft/client/gl/GpuBuffer;closed:Z
      intermediary field_54355 Lnet/minecraft/class_10227;field_54355:Z
      official f Lfem;f:Z
    • initialized

      private boolean initialized
      Mappings:
      Namespace Name Mixin selector
      named initialized Lnet/minecraft/client/gl/GpuBuffer;initialized:Z
      intermediary field_54356 Lnet/minecraft/class_10227;field_54356:Z
      official g Lfem;g:Z
    • handle

      public final int handle
      Mappings:
      Namespace Name Mixin selector
      named handle Lnet/minecraft/client/gl/GpuBuffer;handle:I
      intermediary field_54350 Lnet/minecraft/class_10227;field_54350:I
      official a Lfem;a:I
    • size

      public int size
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/client/gl/GpuBuffer;size:I
      intermediary field_54351 Lnet/minecraft/class_10227;field_54351:I
      official b Lfem;b:I
  • Constructor Details

    • GpuBuffer

      public GpuBuffer(GlBufferTarget target, GlUsage usage, int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gl/GpuBuffer;<init>(Lnet/minecraft/client/gl/GlBufferTarget;Lnet/minecraft/client/gl/GlUsage;I)V
      intermediary <init> Lnet/minecraft/class_10227;<init>(Lnet/minecraft/class_10226;Lnet/minecraft/class_8555;I)V
      official <init> Lfem;<init>(Lfek;Lfel;I)V
    • GpuBuffer

      public GpuBuffer(GlBufferTarget target, GlUsage usage, ByteBuffer buf)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gl/GpuBuffer;<init>(Lnet/minecraft/client/gl/GlBufferTarget;Lnet/minecraft/client/gl/GlUsage;Ljava/nio/ByteBuffer;)V
      intermediary <init> Lnet/minecraft/class_10227;<init>(Lnet/minecraft/class_10226;Lnet/minecraft/class_8555;Ljava/nio/ByteBuffer;)V
      official <init> Lfem;<init>(Lfek;Lfel;Ljava/nio/ByteBuffer;)V
  • Method Details

    • resize

      public void resize(int newSize)
      Mappings:
      Namespace Name Mixin selector
      named resize Lnet/minecraft/client/gl/GpuBuffer;resize(I)V
      intermediary method_64319 Lnet/minecraft/class_10227;method_64319(I)V
      official a Lfem;a(I)V
    • copyFrom

      public void copyFrom(ByteBuffer buf, int offset)
      Mappings:
      Namespace Name Mixin selector
      named copyFrom Lnet/minecraft/client/gl/GpuBuffer;copyFrom(Ljava/nio/ByteBuffer;I)V
      intermediary method_64321 Lnet/minecraft/class_10227;method_64321(Ljava/nio/ByteBuffer;I)V
      official a Lfem;a(Ljava/nio/ByteBuffer;I)V
    • read

      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/client/gl/GpuBuffer;read()Lnet/minecraft/client/gl/GpuBuffer$ReadResult;
      intermediary method_64318 Lnet/minecraft/class_10227;method_64318()Lnet/minecraft/class_10227$class_10228;
      official a Lfem;a()Lfem$a;
    • read

      @Nullable public @Nullable GpuBuffer.ReadResult read(int offset, int bytes)
      Mappings:
      Namespace Name Mixin selector
      named read Lnet/minecraft/client/gl/GpuBuffer;read(II)Lnet/minecraft/client/gl/GpuBuffer$ReadResult;
      intermediary method_64320 Lnet/minecraft/class_10227;method_64320(II)Lnet/minecraft/class_10227$class_10228;
      official a Lfem;a(II)Lfem$a;
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • bind

      public void bind()
      Mappings:
      Namespace Name Mixin selector
      named bind Lnet/minecraft/client/gl/GpuBuffer;bind()V
      intermediary method_64322 Lnet/minecraft/class_10227;method_64322()V
      official b Lfem;b()V