Record Class VertexFormatElement

java.lang.Object
java.lang.Record
com.mojang.blaze3d.vertex.VertexFormatElement

@Environment(CLIENT) public record VertexFormatElement(int id, int index, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int count) extends Record
Mappings:
Namespace Name
named com/mojang/blaze3d/vertex/VertexFormatElement
intermediary com/mojang/blaze3d/vertex/VertexFormatElement
official com/mojang/blaze3d/vertex/VertexFormatElement
  • Field Details

  • Constructor Details

  • Method Details

    • register

      public static VertexFormatElement register(int id, int index, VertexFormatElement.Type type, VertexFormatElement.Usage usage, int count)
      Mappings:
      Namespace Name Mixin selector
      named register Lcom/mojang/blaze3d/vertex/VertexFormatElement;register(IILcom/mojang/blaze3d/vertex/VertexFormatElement$Type;Lcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
      intermediary register Lcom/mojang/blaze3d/vertex/VertexFormatElement;register(IILcom/mojang/blaze3d/vertex/VertexFormatElement$Type;Lcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
      official register Lcom/mojang/blaze3d/vertex/VertexFormatElement;register(IILcom/mojang/blaze3d/vertex/VertexFormatElement$Type;Lcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
    • supportsUsage

      private boolean supportsUsage(int uvIndex, VertexFormatElement.Usage usage)
      Mappings:
      Namespace Name Mixin selector
      named supportsUsage Lcom/mojang/blaze3d/vertex/VertexFormatElement;supportsUsage(ILcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;)Z
      intermediary supportsUsage Lcom/mojang/blaze3d/vertex/VertexFormatElement;supportsUsage(ILcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;)Z
      official supportsUsage Lcom/mojang/blaze3d/vertex/VertexFormatElement;supportsUsage(ILcom/mojang/blaze3d/vertex/VertexFormatElement$Usage;)Z
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • mask

      public int mask()
    • byteSize

      public int byteSize()
    • byId

      @Nullable public static @Nullable VertexFormatElement byId(int id)
      Mappings:
      Namespace Name Mixin selector
      named byId Lcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
      intermediary byId Lcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
      official byId Lcom/mojang/blaze3d/vertex/VertexFormatElement;byId(I)Lcom/mojang/blaze3d/vertex/VertexFormatElement;
    • elementsFromMask

      public static Stream<VertexFormatElement> elementsFromMask(int mask)
      Mappings:
      Namespace Name Mixin selector
      named elementsFromMask Lcom/mojang/blaze3d/vertex/VertexFormatElement;elementsFromMask(I)Ljava/util/stream/Stream;
      intermediary elementsFromMask Lcom/mojang/blaze3d/vertex/VertexFormatElement;elementsFromMask(I)Ljava/util/stream/Stream;
      official elementsFromMask Lcom/mojang/blaze3d/vertex/VertexFormatElement;elementsFromMask(I)Ljava/util/stream/Stream;
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public int id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • index

      public int index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component
    • type

      public VertexFormatElement.Type type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • usage

      public VertexFormatElement.Usage usage()
      Returns the value of the usage record component.
      Returns:
      the value of the usage record component
    • count

      public int count()
      Returns the value of the count record component.
      Returns:
      the value of the count record component