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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Marks this transformation as invalid if it cannot be represented as aBlockRotation
orBlockMirror
.boolean
Returns whether a part has already marked this transformation as invalid.void
Marks 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 aBlockRotation
orBlockMirror
.
-