Class VertexFormat

java.lang.Object
net.minecraft.client.render.VertexFormat

@Environment(CLIENT) public class VertexFormat extends Object
Defines what elements a vertex has.
Mappings:
Namespace Name
named net/minecraft/client/render/VertexFormat
intermediary net/minecraft/class_293
official flu
  • Field Details

    • field_52099

      public static final int field_52099
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_52099 Lnet/minecraft/client/render/VertexFormat;field_52099:I
      intermediary field_52099 Lnet/minecraft/class_293;field_52099:I
      official a Lflu;a:I
    • elements

      private final List<VertexFormatElement> elements
      Mappings:
      Namespace Name Mixin selector
      named elements Lnet/minecraft/client/render/VertexFormat;elements:Ljava/util/List;
      intermediary field_1602 Lnet/minecraft/class_293;field_1602:Ljava/util/List;
      official b Lflu;b:Ljava/util/List;
    • names

      private final List<String> names
      Mappings:
      Namespace Name Mixin selector
      named names Lnet/minecraft/client/render/VertexFormat;names:Ljava/util/List;
      intermediary field_52100 Lnet/minecraft/class_293;field_52100:Ljava/util/List;
      official c Lflu;c:Ljava/util/List;
    • vertexSizeByte

      private final int vertexSizeByte
      Mappings:
      Namespace Name Mixin selector
      named vertexSizeByte Lnet/minecraft/client/render/VertexFormat;vertexSizeByte:I
      intermediary field_1600 Lnet/minecraft/class_293;field_1600:I
      official d Lflu;d:I
    • requiredMask

      private final int requiredMask
      Mappings:
      Namespace Name Mixin selector
      named requiredMask Lnet/minecraft/client/render/VertexFormat;requiredMask:I
      intermediary field_52101 Lnet/minecraft/class_293;field_52101:I
      official e Lflu;e:I
    • offsetsByElementId

      private final int[] offsetsByElementId
      Mappings:
      Namespace Name Mixin selector
      named offsetsByElementId Lnet/minecraft/client/render/VertexFormat;offsetsByElementId:[I
      intermediary field_52102 Lnet/minecraft/class_293;field_52102:[I
      official f Lflu;f:[I
    • vertexBuffer

      @Nullable private @Nullable GpuBuffer vertexBuffer
      Mappings:
      Namespace Name Mixin selector
      named vertexBuffer Lnet/minecraft/client/render/VertexFormat;vertexBuffer:Lnet/minecraft/client/gl/GpuBuffer;
      intermediary field_38984 Lnet/minecraft/class_293;field_38984:Lnet/minecraft/class_10227;
      official g Lflu;g:Lfii;
    • indexBuffer

      @Nullable private @Nullable GpuBuffer indexBuffer
      Mappings:
      Namespace Name Mixin selector
      named indexBuffer Lnet/minecraft/client/render/VertexFormat;indexBuffer:Lnet/minecraft/client/gl/GpuBuffer;
      intermediary field_57915 Lnet/minecraft/class_293;field_57915:Lnet/minecraft/class_10227;
      official h Lflu;h:Lfii;
  • Constructor Details

    • VertexFormat

      VertexFormat(List<VertexFormatElement> elements, List<String> names, IntList offsets, int vertexSizeByte)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/VertexFormat;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
      intermediary <init> Lnet/minecraft/class_293;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
      official <init> Lflu;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
  • Method Details

    • builder

      public static VertexFormat.Builder builder()
      Mappings:
      Namespace Name Mixin selector
      named builder Lnet/minecraft/client/render/VertexFormat;builder()Lnet/minecraft/client/render/VertexFormat$Builder;
      intermediary method_60833 Lnet/minecraft/class_293;method_60833()Lnet/minecraft/class_293$class_9803;
      official a Lflu;a()Lflu$a;
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getVertexSizeByte

      public int getVertexSizeByte()
      Mappings:
      Namespace Name Mixin selector
      named getVertexSizeByte Lnet/minecraft/client/render/VertexFormat;getVertexSizeByte()I
      intermediary method_1362 Lnet/minecraft/class_293;method_1362()I
      official b Lflu;b()I
    • getElements

      public List<VertexFormatElement> getElements()
      Mappings:
      Namespace Name Mixin selector
      named getElements Lnet/minecraft/client/render/VertexFormat;getElements()Ljava/util/List;
      intermediary method_1357 Lnet/minecraft/class_293;method_1357()Ljava/util/List;
      official c Lflu;c()Ljava/util/List;
    • getAttributeNames

      public List<String> getAttributeNames()
      Mappings:
      Namespace Name Mixin selector
      named getAttributeNames Lnet/minecraft/client/render/VertexFormat;getAttributeNames()Ljava/util/List;
      intermediary method_34445 Lnet/minecraft/class_293;method_34445()Ljava/util/List;
      official d Lflu;d()Ljava/util/List;
    • getOffsetsByElementId

      public int[] getOffsetsByElementId()
      Mappings:
      Namespace Name Mixin selector
      named getOffsetsByElementId Lnet/minecraft/client/render/VertexFormat;getOffsetsByElementId()[I
      intermediary method_60838 Lnet/minecraft/class_293;method_60838()[I
      official e Lflu;e()[I
    • getOffset

      public int getOffset(VertexFormatElement element)
      Mappings:
      Namespace Name Mixin selector
      named getOffset Lnet/minecraft/client/render/VertexFormat;getOffset(Lnet/minecraft/client/render/VertexFormatElement;)I
      intermediary method_60835 Lnet/minecraft/class_293;method_60835(Lnet/minecraft/class_296;)I
      official a Lflu;a(Lflv;)I
    • has

      public boolean has(VertexFormatElement element)
      Mappings:
      Namespace Name Mixin selector
      named has Lnet/minecraft/client/render/VertexFormat;has(Lnet/minecraft/client/render/VertexFormatElement;)Z
      intermediary method_60836 Lnet/minecraft/class_293;method_60836(Lnet/minecraft/class_296;)Z
      official b Lflu;b(Lflv;)Z
    • getRequiredMask

      public int getRequiredMask()
      Mappings:
      Namespace Name Mixin selector
      named getRequiredMask Lnet/minecraft/client/render/VertexFormat;getRequiredMask()I
      intermediary method_60839 Lnet/minecraft/class_293;method_60839()I
      official f Lflu;f()I
    • getName

      public String getName(VertexFormatElement element)
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/client/render/VertexFormat;getName(Lnet/minecraft/client/render/VertexFormatElement;)Ljava/lang/String;
      intermediary method_60837 Lnet/minecraft/class_293;method_60837(Lnet/minecraft/class_296;)Ljava/lang/String;
      official c Lflu;c(Lflv;)Ljava/lang/String;
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lnet/minecraft/client/render/VertexFormat;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_293;equals(Ljava/lang/Object;)Z
      official equals Lflu;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • uploadVertices

      public GpuBuffer uploadVertices(ByteBuffer buffer)
      Mappings:
      Namespace Name Mixin selector
      named uploadVertices Lnet/minecraft/client/render/VertexFormat;uploadVertices(Ljava/nio/ByteBuffer;)Lnet/minecraft/client/gl/GpuBuffer;
      intermediary method_68460 Lnet/minecraft/class_293;method_68460(Ljava/nio/ByteBuffer;)Lnet/minecraft/class_10227;
      official a Lflu;a(Ljava/nio/ByteBuffer;)Lfii;
    • uploadIndex

      public GpuBuffer uploadIndex(ByteBuffer buffer)
      Mappings:
      Namespace Name Mixin selector
      named uploadIndex Lnet/minecraft/client/render/VertexFormat;uploadIndex(Ljava/nio/ByteBuffer;)Lnet/minecraft/client/gl/GpuBuffer;
      intermediary method_68461 Lnet/minecraft/class_293;method_68461(Ljava/nio/ByteBuffer;)Lnet/minecraft/class_10227;
      official b Lflu;b(Ljava/nio/ByteBuffer;)Lfii;