java.lang.Object
committee.nova.mods.avaritia.api.client.render.pipeline.attribute.AttributeKey<T>

public abstract class AttributeKey<T> extends Object
Represents a Key for abstract data storage on an IVertexSource
另请参阅:
  • 字段详细资料

    • attributeKeyIndex

      public final int attributeKeyIndex
    • operationIndex

      public final int operationIndex
  • 构造器详细资料

    • AttributeKey

      public AttributeKey(String name)
  • 方法详细资料

    • create

      public static <T> AttributeKey<T> create(String name, IntFunction<T> factory)
    • createDefault

      public abstract T createDefault(int length)
      Construct a new default instance of the storage.
      参数:
      length - The vertex length.
      返回:
      The new storage.
    • copy

      public abstract T copy(T src, int length)
      Copy and resize the attribute.

      The attribute will either beCopyable or an array, which may also hold objects which are Copyable.

      参数:
      src - The object to copy.
      length - The new length of vertices.
      返回:
      The copied attribute.
    • copyRange

      public abstract T copyRange(T src, int srcpos, T dest, int destpos, int length)
      Copies the range of the source attribute into the destination attribute.
      参数:
      src - The attribute instance to copy from.
      srcpos - The starting vertex position to copy from.
      dest - The attribute instance to copy into.
      destpos - The starting vertex position to copy into.
      length - The number of vertex elements to copy.
      返回:
      The object to set in the destination's attribute slot. Usually just dest.`