Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic class CratePreOpenEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
org.bukkit.event.Event.Result
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cancelled
Indicates whether the event has been cancelled.
|
protected CrateInstance |
crate
The crate instance associated with this event.
|
protected org.bukkit.entity.Player |
player
The player associated with this event.
|
| Constructor and Description |
|---|
CratePreOpenEvent(CrateInstance crate,
org.bukkit.entity.Player player)
Constructor for the CratePreOpenEvent.
|
| Modifier and Type | Method and Description |
|---|---|
static org.bukkit.event.HandlerList |
getHandlerList()
Retrieves the handler list for this event.
|
org.bukkit.event.HandlerList |
getHandlers()
Gets the list of handlers for this event.
|
CrateType |
getType()
Retrieves the type of crate being opened.
|
boolean |
isCancelled()
Gets the cancellation status of this event.
|
void |
setCancelled(boolean cancelled)
Sets the cancellation status of this event.
|
getEventName, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected final CrateInstance crate
Represents the specific crate that is being opened or interacted with.
protected final org.bukkit.entity.Player player
Represents the player who is attempting to open the crate.
protected boolean cancelled
Can be set to true to prevent the crate opening from proceeding.
public CratePreOpenEvent(CrateInstance crate, org.bukkit.entity.Player player)
crate - the crate being openedplayer - the player attempting to open the cratepublic CrateType getType()
CrateType associated with the cratepublic org.bukkit.event.HandlerList getHandlers()
getHandlers in class org.bukkit.event.Event
public static org.bukkit.event.HandlerList getHandlerList()
HandlerList for this eventpublic boolean isCancelled()
isCancelled in interface org.bukkit.event.Cancellable
public void setCancelled(boolean cancelled)
setCancelled in interface org.bukkit.event.Cancellable
cancelled - true to cancel the event, false to allow the crate to open
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy