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,org.kingdoms.constants.namespace.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 -
Field Summary
Fields inherited from class org.kingdoms.events.KingdomsEvent
SILENCED -
Constructor Summary
ConstructorsConstructorDescriptionNexusMoveEvent(Structure structure, Structure newStructure, KingdomPlayer kingdomPlayer, SimpleLocation from, SimpleLocation to) -
Method Summary
Modifier and TypeMethodDescription@Nullable SimpleLocationgetFrom()static org.bukkit.event.HandlerList@NotNull org.bukkit.event.HandlerList@Nullable StructureGets the old nexus placed.@NonNull Structure@Nullable KingdomPlayer@NonNull SimpleLocationgetTo()booleanvoidsetCancelled(boolean cancelled) voidsetNewStructure(@NonNull Structure newStructure) voidsetTo(@NonNull SimpleLocation to) Methods inherited from class org.kingdoms.events.KingdomsEvent
addMessageContextEdits, getMetadata, getMetadata, isSilenced, silenceMethods 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 @NotNull 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
-