Class QuadFaceStripper

java.lang.Object
codechicken.lib.model.QuadTransformer
codechicken.lib.model.QuadFaceStripper

public class QuadFaceStripper extends QuadTransformer
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 Details

    • QuadFaceStripper

      public QuadFaceStripper()
  • Method Details

    • setBounds

      public void setBounds(Cuboid6 bounds)
      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 of setBounds(Cuboid6) for AABB.
    • setMask

      public void setMask(int mask)
      The mask to strip edges. This is an opt-in system, the mask is simple mask = (1 << side)
      Parameters:
      mask - The mask.
    • transform

      public boolean transform(Quad quad)
      Description copied from class: QuadTransformer
      Transform the quad.
      Specified by:
      transform in class QuadTransformer
      Returns:
      If transformation should continue. If false, the quad will be discarded.