Package codechicken.lib.model
Class CachedFormat
java.lang.Object
codechicken.lib.model.CachedFormat
A simple VertexFormat cache.
This caches the existence of attributes and their indexes.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CachedFormatfinal intfinal intfinal com.mojang.blaze3d.vertex.VertexFormatfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal booleanfinal intfinal intfinal intfinal intfinal int -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static CachedFormatlookup(com.mojang.blaze3d.vertex.VertexFormat format) Lookup or create the CachedFormat for a given VertexFormat.
-
Field Details
-
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
-
-
Method Details