Class PartTransformCheckEvent
java.lang.Object
alexiil.mc.lib.multipart.api.event.MultipartEvent
alexiil.mc.lib.multipart.api.event.PartTransformCheckEvent
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMarks this transformation as invalid if it cannot be represented as aBlockRotationorBlockMirror.booleanReturns whether a part has already marked this transformation as invalid.voidMarks this transformation as invalid.
-
Field Details
-
transformation
-
-
Constructor Details
-
PartTransformCheckEvent
-
-
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 aBlockRotationorBlockMirror.
-