Package codechicken.lib.model
Class QuadFaceStripper
java.lang.Object
codechicken.lib.model.QuadTransformer
codechicken.lib.model.QuadFaceStripper
This transformer strips quads that lie exactly on the faces of the provided bounds.
Simply set the bounds for the faces, and the strip mask.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class codechicken.lib.model.QuadTransformer
beforeTransform, epsComp, transform, transform
-
Constructor Details
-
QuadFaceStripper
public 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
Description copied from class:QuadTransformerTransform the quad.- Specified by:
transformin classQuadTransformer- Returns:
- If transformation should continue.
If
false, the quad will be discarded.
-