Package org.kingdoms.events.lands
Class NexusMoveEvent
java.lang.Object
org.bukkit.event.Event
org.kingdoms.events.KingdomsEvent
org.kingdoms.events.lands.NexusMoveEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable,org.kingdoms.abstraction.KingdomItemOperator,org.kingdoms.abstraction.PlayerOperator,NamespacedMetadataContainer,org.kingdoms.locale.provider.MessageContextProvider
public class NexusMoveEvent
extends KingdomsEvent
implements org.bukkit.event.Cancellable, org.kingdoms.abstraction.PlayerOperator, org.kingdoms.abstraction.KingdomItemOperator
This event is only for /k nexus and /k nation nexus
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionNexusMoveEvent(Structure structure, Structure newStructure, KingdomPlayer kingdomPlayer, SimpleLocation from, SimpleLocation to) -
Method Summary
Modifier and TypeMethodDescriptiongetFrom()static org.bukkit.event.HandlerListorg.bukkit.event.HandlerListGets the old nexus placed.@NonNull Structure@NonNull SimpleLocationgetTo()booleanvoidsetCancelled(boolean cancelled) voidsetNewStructure(@NonNull Structure newStructure) voidsetTo(@NonNull SimpleLocation to) Methods inherited from class org.kingdoms.events.KingdomsEvent
addMessageContextEdits, getMetadata, getMetadataMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronousMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kingdoms.locale.provider.MessageContextProvider
getMessageContext
-
Constructor Details
-
NexusMoveEvent
public NexusMoveEvent(Structure structure, Structure newStructure, KingdomPlayer kingdomPlayer, SimpleLocation from, SimpleLocation to)
-
-
Method Details
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@NotNull 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 cancelled) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getFrom
-
getTo
-
setTo
-
getPlayer
- Specified by:
getPlayerin interfaceorg.kingdoms.abstraction.PlayerOperator
-
getNewStructure
-
setNewStructure
-
getKingdomItem
Gets the old nexus placed.- Specified by:
getKingdomItemin interfaceorg.kingdoms.abstraction.KingdomItemOperator
-