Package com.stardevllc.starhomes.events
Class DeleteHomeEvent
java.lang.Object
org.bukkit.event.Event
com.stardevllc.starhomes.events.DeleteHomeEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class DeleteHomeEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Called when a home is in the process of being deleted
This is called before the deletion actually occurs
Cancel this event to prevent the deletion to occur
This is called before the deletion actually occurs
Cancel this event to prevent the deletion to occur
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionDeleteHomeEvent(Home home, com.stardevllc.starmclib.actors.Actor actor) Creates a new delete home event -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.stardevllc.starmclib.actors.Actor> getActor()The actor that performed the deletion request (Can be null)static org.bukkit.event.HandlerListUsed for the Bukkit Events Systemorg.bukkit.event.HandlerListgetHome()The home of the deletion requestbooleanvoidsetCancelled(boolean b) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
DeleteHomeEvent
Creates a new delete home event- Parameters:
home- The home that is to be deletedactor- The actor that performed the deletion request (Can be null)
-
-
Method Details
-
getHome
The home of the deletion request- Returns:
- The home
-
getActor
The actor that performed the deletion request (Can be null)- Returns:
- The actor as an optional
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Used for the Bukkit Events System- Returns:
- The handler list
-
getHandlers
public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean b) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-