Class QuadFaceStripper

java.lang.Object
codechicken.lib.model.pipeline.QuadTransformer
codechicken.lib.model.pipeline.transformers.QuadFaceStripper
All Implemented Interfaces:
IVertexConsumer, IPipelineConsumer

public class QuadFaceStripper extends QuadTransformer
This transformer strips quads that are on faces. Simply set the bounds for the faces, and the strip mask.
  • Field Details

  • Constructor Details

    • QuadFaceStripper

      public QuadFaceStripper(IVertexConsumer parent, net.minecraft.world.phys.AABB bounds, int mask)
  • 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()
      Description copied from class: QuadTransformer
      Called to transform the vertices.
      Specified by:
      transform in class QuadTransformer
      Returns:
      If the transformer should pipe the quad.