类 AttributeKey<T>
java.lang.Object
committee.nova.mods.avaritia.api.client.render.pipeline.attribute.AttributeKey<T>
Represents a Key for abstract data storage on an
IVertexSource-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract TCopy and resize the attribute.abstract TCopies the range of the source attribute into the destination attribute.static <T> AttributeKey<T>create(String name, IntFunction<T> factory) abstract TcreateDefault(int length) Construct a new default instance of the storage.
-
字段详细资料
-
attributeKeyIndex
public final int attributeKeyIndex -
operationIndex
public final int operationIndex
-
-
构造器详细资料
-
AttributeKey
-
-
方法详细资料
-
create
-
createDefault
Construct a new default instance of the storage.- 参数:
length- The vertex length.- 返回:
- The new storage.
-
copy
Copy and resize the attribute.The attribute will either be
Copyableor an array, which may also hold objects which areCopyable.- 参数:
src- The object to copy.length- The new length of vertices.- 返回:
- The copied attribute.
-
copyRange
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.`
-