Package com.plotsquared.core.events
Class PlotUnlinkEvent
java.lang.Object
com.plotsquared.core.events.PlotEvent
com.plotsquared.core.events.PlotUnlinkEvent
- All Implemented Interfaces:
CancellablePlotEvent
Event called when several merged plots are unlinked
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPlotUnlinkEvent(@NonNull PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) PlotUnlinkEvent: Called when a mega plot is unlinked -
Method Summary
Modifier and TypeMethodDescriptiongetArea()The currently setResultfor this event (as set by potential previous event listeners).booleanbooleanvoidsetCreateRoad(boolean createRoad) voidsetCreateSign(boolean createSign) voidSet theResultfor this event.Methods inherited from class com.plotsquared.core.events.PlotEvent
getEventName, getPlotMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.plotsquared.core.events.CancellablePlotEvent
getEventResultRaw
-
Constructor Details
-
PlotUnlinkEvent
public PlotUnlinkEvent(@NonNull PlotArea area, Plot plot, boolean createRoad, boolean createSign, PlotUnlinkEvent.REASON reason) PlotUnlinkEvent: Called when a mega plot is unlinked- Parameters:
area- The applicable plot areaplot- The plot being unlinked fromcreateRoad- Whether to regenerate the roadcreateSign- Whether to regenerate signsreason- ThePlotUnlinkEvent.REASONfor the unlink
-
-
Method Details
-
getEventResult
Description copied from interface:CancellablePlotEventThe currently setResultfor this event (as set by potential previous event listeners).- Specified by:
getEventResultin interfaceCancellablePlotEvent- Returns:
- the current result.
-
setEventResult
Description copied from interface:CancellablePlotEventSet theResultfor this event.- Specified by:
setEventResultin interfaceCancellablePlotEvent- Parameters:
e- the new result.
-
getArea
-
isCreateRoad
-
setCreateRoad
-
isCreateSign
-
setCreateSign
-
getReason
-