Class VertexFormat

java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat

@Environment(CLIENT) public class VertexFormat extends Object
Mappings:
Namespace Name
named com/mojang/blaze3d/vertex/VertexFormat
intermediary com/mojang/blaze3d/vertex/VertexFormat
official com/mojang/blaze3d/vertex/VertexFormat
  • Field Details Link icon

  • Constructor Details Link icon

    • VertexFormat Link icon

      VertexFormat(List<VertexFormatElement> elements, List<String> names, IntList offsets, int vertexSize)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lcom/mojang/blaze3d/vertex/VertexFormat;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
      intermediary <init> Lcom/mojang/blaze3d/vertex/VertexFormat;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
      official <init> Lcom/mojang/blaze3d/vertex/VertexFormat;<init>(Ljava/util/List;Ljava/util/List;Lit/unimi/dsi/fastutil/ints/IntList;I)V
  • Method Details Link icon

    • builder Link icon

      public static VertexFormat.Builder builder()
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • getVertexSize Link icon

      public int getVertexSize()
    • getElements Link icon

      public List<VertexFormatElement> getElements()
    • getElementAttributeNames Link icon

      public List<String> getElementAttributeNames()
    • getOffsetsByElement Link icon

      public int[] getOffsetsByElement()
    • getOffset Link icon

      public int getOffset(VertexFormatElement element)
      Mappings:
      Namespace Name Mixin selector
      named getOffset Lcom/mojang/blaze3d/vertex/VertexFormat;getOffset(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)I
      intermediary getOffset Lcom/mojang/blaze3d/vertex/VertexFormat;getOffset(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)I
      official getOffset Lcom/mojang/blaze3d/vertex/VertexFormat;getOffset(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)I
    • contains Link icon

      public boolean contains(VertexFormatElement element)
      Mappings:
      Namespace Name Mixin selector
      named contains Lcom/mojang/blaze3d/vertex/VertexFormat;contains(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Z
      intermediary contains Lcom/mojang/blaze3d/vertex/VertexFormat;contains(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Z
      official contains Lcom/mojang/blaze3d/vertex/VertexFormat;contains(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Z
    • getElementsMask Link icon

      public int getElementsMask()
    • getElementName Link icon

      public String getElementName(VertexFormatElement element)
      Mappings:
      Namespace Name Mixin selector
      named getElementName Lcom/mojang/blaze3d/vertex/VertexFormat;getElementName(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Ljava/lang/String;
      intermediary getElementName Lcom/mojang/blaze3d/vertex/VertexFormat;getElementName(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Ljava/lang/String;
      official getElementName Lcom/mojang/blaze3d/vertex/VertexFormat;getElementName(Lcom/mojang/blaze3d/vertex/VertexFormatElement;)Ljava/lang/String;
    • equals Link icon

      public boolean equals(Object o)
      Overrides:
      equals in class Object
      Mappings:
      Namespace Name Mixin selector
      named equals Lcom/mojang/blaze3d/vertex/VertexFormat;equals(Ljava/lang/Object;)Z
      intermediary equals Lcom/mojang/blaze3d/vertex/VertexFormat;equals(Ljava/lang/Object;)Z
      official equals Lcom/mojang/blaze3d/vertex/VertexFormat;equals(Ljava/lang/Object;)Z
    • hashCode Link icon

      public int hashCode()
      Overrides:
      hashCode in class Object
    • uploadImmediateVertexBuffer Link icon

      public GpuBuffer uploadImmediateVertexBuffer(ByteBuffer vertexBuffer)
      Mappings:
      Namespace Name Mixin selector
      named uploadImmediateVertexBuffer Lcom/mojang/blaze3d/vertex/VertexFormat;uploadImmediateVertexBuffer(Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
      intermediary uploadImmediateVertexBuffer Lcom/mojang/blaze3d/vertex/VertexFormat;uploadImmediateVertexBuffer(Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
      official uploadImmediateVertexBuffer Lcom/mojang/blaze3d/vertex/VertexFormat;uploadImmediateVertexBuffer(Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
    • uploadImmediateIndexBuffer Link icon

      public GpuBuffer uploadImmediateIndexBuffer(ByteBuffer indexBuffer)
      Mappings:
      Namespace Name Mixin selector
      named uploadImmediateIndexBuffer Lcom/mojang/blaze3d/vertex/VertexFormat;uploadImmediateIndexBuffer(Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
      intermediary uploadImmediateIndexBuffer Lcom/mojang/blaze3d/vertex/VertexFormat;uploadImmediateIndexBuffer(Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;
      official uploadImmediateIndexBuffer Lcom/mojang/blaze3d/vertex/VertexFormat;uploadImmediateIndexBuffer(Ljava/nio/ByteBuffer;)Lcom/mojang/blaze3d/buffers/GpuBuffer;