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 fae
  • Field Details

    • elements

      private final ImmutableList<VertexFormatElement> elements
      Mappings:
      Namespace Name Mixin selector
      named elements Lnet/minecraft/client/render/VertexFormat;elements:Lcom/google/common/collect/ImmutableList;
      intermediary field_1602 Lnet/minecraft/class_293;field_1602:Lcom/google/common/collect/ImmutableList;
      official a Lfae;a:Lcom/google/common/collect/ImmutableList;
    • elementMap

      private final ImmutableMap<String,VertexFormatElement> elementMap
      Mappings:
      Namespace Name Mixin selector
      named elementMap Lnet/minecraft/client/render/VertexFormat;elementMap:Lcom/google/common/collect/ImmutableMap;
      intermediary field_29340 Lnet/minecraft/class_293;field_29340:Lcom/google/common/collect/ImmutableMap;
      official b Lfae;b:Lcom/google/common/collect/ImmutableMap;
    • offsets

      private final IntList offsets
      Mappings:
      Namespace Name Mixin selector
      named offsets Lnet/minecraft/client/render/VertexFormat;offsets:Lit/unimi/dsi/fastutil/ints/IntList;
      intermediary field_1597 Lnet/minecraft/class_293;field_1597:Lit/unimi/dsi/fastutil/ints/IntList;
      official c Lfae;c:Lit/unimi/dsi/fastutil/ints/IntList;
    • 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 Lfae;d:I
    • buffer

      Mappings:
      Namespace Name Mixin selector
      named buffer Lnet/minecraft/client/render/VertexFormat;buffer:Lnet/minecraft/client/gl/VertexBuffer;
      intermediary field_38984 Lnet/minecraft/class_293;field_38984:Lnet/minecraft/class_291;
      official e Lfae;e:Lfac;
  • Constructor Details

    • VertexFormat

      public VertexFormat(ImmutableMap<String,VertexFormatElement> elementMap)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/render/VertexFormat;<init>(Lcom/google/common/collect/ImmutableMap;)V
      intermediary <init> Lnet/minecraft/class_293;<init>(Lcom/google/common/collect/ImmutableMap;)V
      official <init> Lfae;<init>(Lcom/google/common/collect/ImmutableMap;)V
  • Method Details

    • toString

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

      public int getVertexSizeInteger()
      Mappings:
      Namespace Name Mixin selector
      named getVertexSizeInteger Lnet/minecraft/client/render/VertexFormat;getVertexSizeInteger()I
      intermediary method_1359 Lnet/minecraft/class_293;method_1359()I
      official a Lfae;a()I
    • 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 Lfae;b()I
    • getElements

      public ImmutableList<VertexFormatElement> getElements()
      Mappings:
      Namespace Name Mixin selector
      named getElements Lnet/minecraft/client/render/VertexFormat;getElements()Lcom/google/common/collect/ImmutableList;
      intermediary method_1357 Lnet/minecraft/class_293;method_1357()Lcom/google/common/collect/ImmutableList;
      official c Lfae;c()Lcom/google/common/collect/ImmutableList;
    • getAttributeNames

      public ImmutableList<String> getAttributeNames()
      Mappings:
      Namespace Name Mixin selector
      named getAttributeNames Lnet/minecraft/client/render/VertexFormat;getAttributeNames()Lcom/google/common/collect/ImmutableList;
      intermediary method_34445 Lnet/minecraft/class_293;method_34445()Lcom/google/common/collect/ImmutableList;
      official d Lfae;d()Lcom/google/common/collect/ImmutableList;
    • 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 Lfae;equals(Ljava/lang/Object;)Z
    • hashCode

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

      public void setupState()
      Specifies for OpenGL how the vertex data should be interpreted.
      Mappings:
      Namespace Name Mixin selector
      named setupState Lnet/minecraft/client/render/VertexFormat;setupState()V
      intermediary method_22649 Lnet/minecraft/class_293;method_22649()V
      official e Lfae;e()V
    • setupStateInternal

      private void setupStateInternal()
      Mappings:
      Namespace Name Mixin selector
      named setupStateInternal Lnet/minecraft/client/render/VertexFormat;setupStateInternal()V
      intermediary method_34449 Lnet/minecraft/class_293;method_34449()V
      official h Lfae;h()V
    • clearState

      public void clearState()
      Mappings:
      Namespace Name Mixin selector
      named clearState Lnet/minecraft/client/render/VertexFormat;clearState()V
      intermediary method_22651 Lnet/minecraft/class_293;method_22651()V
      official f Lfae;f()V
    • clearStateInternal

      private void clearStateInternal()
      Mappings:
      Namespace Name Mixin selector
      named clearStateInternal Lnet/minecraft/client/render/VertexFormat;clearStateInternal()V
      intermediary method_34450 Lnet/minecraft/class_293;method_34450()V
      official i Lfae;i()V
    • getBuffer

      public VertexBuffer getBuffer()
      Returns a vertex buffer shared with the users of this vertex format.

      The data uploaded to the returned vertex buffer cannot be reused as it can be overwritten by other users of this method.

      Returns:
      a vertex buffer shared with the users of this vertex format
      Mappings:
      Namespace Name Mixin selector
      named getBuffer Lnet/minecraft/client/render/VertexFormat;getBuffer()Lnet/minecraft/client/gl/VertexBuffer;
      intermediary method_43446 Lnet/minecraft/class_293;method_43446()Lnet/minecraft/class_291;
      official g Lfae;g()Lfac;