Class KonquestPlayerCampEvent
java.lang.Object
org.bukkit.event.Event
com.github.rumsfield.konquest.api.event.KonquestEvent
com.github.rumsfield.konquest.api.event.player.KonquestPlayerEvent
com.github.rumsfield.konquest.api.event.player.KonquestPlayerCampEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class KonquestPlayerCampEvent
extends KonquestPlayerEvent
implements org.bukkit.event.Cancellable
Called before a barbarian player places a bed in the wild to create their camp.
Canceling this event will prevent the camp creation and bed block placement.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionKonquestPlayerCampEvent
(KonquestAPI konquest, KonquestPlayer player, org.bukkit.Location location) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.Location
Gets the location of the new camp.boolean
void
setCancelled
(boolean val) Methods inherited from class com.github.rumsfield.konquest.api.event.player.KonquestPlayerEvent
getPlayer
Methods inherited from class com.github.rumsfield.konquest.api.event.KonquestEvent
getHandlerList, getHandlers, getKonquest
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KonquestPlayerCampEvent
public KonquestPlayerCampEvent(KonquestAPI konquest, KonquestPlayer player, org.bukkit.Location location) Default constructor- Parameters:
konquest
- The API instanceplayer
- The playerlocation
- The location
-
-
Method Details
-
getLocation
public org.bukkit.Location getLocation()Gets the location of the new camp. This is the where the bed is being placed.- Returns:
- The location
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean val) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-