Package codechicken.lib.render
Class BlockRenderer.BlockFace
java.lang.Object
codechicken.lib.render.BlockRenderer.BlockFace
- All Implemented Interfaces:
IVertexSource
- Enclosing class:
- BlockRenderer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TgetAttribute(AttributeKey<T> attr) Gets an attribute from thisIVertexSource.Vertex5[]The vertices for this model.booleanhasAttribute(AttributeKey<?> attr) Returnstrueif the specified attribute is provided by thisIVertexSource.loadCuboidFace(Cuboid6 c, int side) voidprepareVertex(CCRenderState ccrs) Called before the pipeline processes a vertex.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.lib.render.pipeline.IVertexSource
getVertexCount
-
Field Details
-
verts
-
lightCoords
-
lcComputed
public boolean lcComputed -
side
public int side
-
-
Constructor Details
-
BlockFace
public BlockFace()
-
-
Method Details
-
getVertices
Description copied from interface:IVertexSourceThe vertices for this model.- Specified by:
getVerticesin interfaceIVertexSource- Returns:
- The Vertices.
-
getAttribute
Description copied from interface:IVertexSourceGets an attribute from thisIVertexSource.- Specified by:
getAttributein interfaceIVertexSource- Parameters:
attr- The vertex attribute to get- Returns:
- The
Tfor the givenAttributeKeyornullof the Attribute does not exist.
-
hasAttribute
Description copied from interface:IVertexSourceReturnstrueif the specified attribute is provided by thisIVertexSource.The
IVertexSourcewill either return data fromIVertexSource.getAttribute(AttributeKey)or set the state inIVertexSource.prepareVertex(CCRenderState).- Specified by:
hasAttributein interfaceIVertexSource- Returns:
trueif the attribute exists.
-
prepareVertex
Description copied from interface:IVertexSourceCalled before the pipeline processes a vertex.- Specified by:
prepareVertexin interfaceIVertexSource- Parameters:
ccrs- The instance.
-
computeLightCoords
-
loadCuboidFace
-