Interface PatternChangeEvent
- All Known Implementing Classes:
PlayerVeinMiningPatternChangeEvent
public interface PatternChangeEvent
A callable event when a player changes their pattern.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The cause for aPatternChangeEvent
to be called. -
Method Summary
Modifier and TypeMethodDescription@NotNull PatternChangeEvent.Cause
getCause()
Get theCause
of this event.@NotNull VeinMiningPattern
Get theVeinMiningPattern
to change to.boolean
Checks whether or not this event has been cancelled.
-
Method Details
-
getNewPattern
Get theVeinMiningPattern
to change to.- Returns:
- the new pattern
-
getCause
Get theCause
of this event.- Returns:
- the cause
-
isCancelled
boolean isCancelled()Checks whether or not this event has been cancelled.- Returns:
- true if cancelled, false otherwise
-