类 CachedFormat

java.lang.Object
committee.nova.mods.avaritia.api.client.model.CachedFormat

public class CachedFormat extends Object
A simple VertexFormat cache. This caches the existence of attributes and their indexes.
  • 字段详细资料

    • BLOCK

      public static final CachedFormat BLOCK
    • format

      public final com.mojang.blaze3d.vertex.VertexFormat format
    • hasPosition

      public final boolean hasPosition
    • hasNormal

      public final boolean hasNormal
    • hasColor

      public final boolean hasColor
    • hasUV

      public final boolean hasUV
    • hasOverlay

      public final boolean hasOverlay
    • hasLightMap

      public final boolean hasLightMap
    • positionIndex

      public final int positionIndex
    • normalIndex

      public final int normalIndex
    • colorIndex

      public final int colorIndex
    • uvIndex

      public final int uvIndex
    • overlayIndex

      public final int overlayIndex
    • lightMapIndex

      public final int lightMapIndex
    • elementCount

      public final int elementCount
  • 方法详细资料

    • lookup

      public static CachedFormat lookup(com.mojang.blaze3d.vertex.VertexFormat format)
      Lookup or create the CachedFormat for a given VertexFormat.
      参数:
      format - The format to lookup.
      返回:
      The CachedFormat.
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object