|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.event.Event
com.amoebaman.kitmaster.objects.GiveKitEvent
public class GiveKitEvent
An event that is called whenever a kit is given to a player.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.bukkit.event.Event |
|---|
org.bukkit.event.Event.Result |
| Constructor Summary | |
|---|---|
GiveKitEvent(org.bukkit.entity.Player player,
Kit kit,
GiveKitContext context)
Should not be used. |
|
| Method Summary | |
|---|---|
void |
callEvent()
Calls this event, sending it through the Bukkit event system and giving other plugins the chance to modify it. |
GiveKitContext |
getContext()
Gets the context/reason for this kit being given. |
static org.bukkit.event.HandlerList |
getHandlerList()
|
org.bukkit.event.HandlerList |
getHandlers()
|
Kit |
getKit()
Gets the kit involved in this event. |
org.bukkit.entity.Player |
getPlayer()
Gets the player involved in this event. |
boolean |
isCancelled()
|
void |
setCancelled(boolean cancel)
|
void |
setKit(Kit newKit)
Replaces the kit to be given with a new or modified one. |
| Methods inherited from class org.bukkit.event.Event |
|---|
getEventName, isAsynchronous |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GiveKitEvent(org.bukkit.entity.Player player,
Kit kit,
GiveKitContext context)
player - kit - context - | Method Detail |
|---|
public org.bukkit.entity.Player getPlayer()
public Kit getKit()
public GiveKitContext getContext()
public void setKit(Kit newKit)
newKit - The new kit that will be given.public org.bukkit.event.HandlerList getHandlers()
getHandlers in class org.bukkit.event.Eventpublic static org.bukkit.event.HandlerList getHandlerList()
public void callEvent()
public boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellablepublic void setCancelled(boolean cancel)
setCancelled in interface org.bukkit.event.Cancellable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||