Class QuadFaceStripper
java.lang.Object
codechicken.lib.model.pipeline.QuadTransformer
codechicken.lib.model.pipeline.transformers.QuadFaceStripper
- All Implemented Interfaces:
IVertexConsumer,IPipelineConsumer
This transformer strips quads that are on faces.
Simply set the bounds for the faces, and the strip mask.
-
Field Summary
FieldsFields inherited from class codechicken.lib.model.pipeline.QuadTransformer
consumer, format, quad -
Constructor Summary
ConstructorsConstructorDescriptionQuadFaceStripper(IVertexConsumer parent, net.minecraft.world.phys.AABB bounds, int mask) -
Method Summary
Modifier and TypeMethodDescriptionvoidThe bounds of the faces, used as the ..voidsetBounds(net.minecraft.world.phys.AABB bounds) Overload ofsetBounds(Cuboid6)forAABB.voidsetMask(int mask) The mask to strip edges.booleanCalled to transform the vertices.Methods inherited from class codechicken.lib.model.pipeline.QuadTransformer
epsComp, getVertexFormat, onFull, put, put, reset, setApplyDiffuseLighting, setInputQuad, setParent, setQuadOrientation, setQuadTint, setTextureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface codechicken.lib.model.IVertexConsumer
put
-
Field Details
-
FACTORY
-
-
Constructor Details
-
QuadFaceStripper
-
-
Method Details
-
setBounds
The bounds of the faces, used as the .. bounds, if all vertices of a quad lay on the bounds, it is up for stripping.- Parameters:
bounds- The bounds.
-
setBounds
public void setBounds(net.minecraft.world.phys.AABB bounds) Overload ofsetBounds(Cuboid6)forAABB. -
setMask
public void setMask(int mask) The mask to strip edges. This is an opt-in system, the mask is simplemask = (1 << side)- Parameters:
mask- The mask.
-
transform
public boolean transform()Description copied from class:QuadTransformerCalled to transform the vertices.- Specified by:
transformin classQuadTransformer- Returns:
- If the transformer should pipe the quad.
-