Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buypublic class CratePreviewOpenEvent
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 crate preview event has been cancelled.
|
protected CrateType |
crateType
The type of crate being previewed in this event.
|
protected org.bukkit.entity.Player |
player
The player associated with this preview event.
|
protected String |
previewMenu
The identifier or menu name for the crate preview.
|
| Constructor and Description |
|---|
CratePreviewOpenEvent(CrateType crateType,
String previewMenu,
org.bukkit.entity.Player player)
Constructor for the CratePreviewOpenEvent.
|
| 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.
|
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 CrateType crateType
Represents the specific crate configuration or category being previewed.
protected final String previewMenu
Can be used to display or reference the preview interface for the crate.
protected final org.bukkit.entity.Player player
Represents the player who is attempting to view the crate preview.
protected boolean cancelled
Setting this to true will prevent the preview from being shown.
public CratePreviewOpenEvent(CrateType crateType, String previewMenu, org.bukkit.entity.Player player)
crateType - the type of crate being previewedpreviewMenu - the name/identifier of the preview menuplayer - the player attempting to view the crate previewpublic 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 preview to open
Oops... looks like the spiders padded through here
Add products to your cart and remove them from here Lets buy