Class PartTransformCheckEvent

java.lang.Object
alexiil.mc.lib.multipart.api.event.MultipartEvent
alexiil.mc.lib.multipart.api.event.PartTransformCheckEvent

public class PartTransformCheckEvent extends MultipartEvent
Used to check if all parts in a multipart block support a type of transformation.

If any parts mark the given transformation as invalid, then the given transformation will not be applied to any part in the multipart block.

See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • isInvalid

      public boolean isInvalid()
      Returns whether a part has already marked this transformation as invalid.
    • markInvalid

      public void markInvalid()
      Marks this transformation as invalid.

      If any parts mark the given transformation as invalid, then the given transformation will not be applied to any part in the multipart block.

    • allowOnlyRotationOrMirror

      public void allowOnlyRotationOrMirror()
      Marks this transformation as invalid if it cannot be represented as a BlockRotation or BlockMirror.