toggle menu
HMCWraps API
1.5.1
jvm
switch theme
search in API
HMCWraps API
/
de.skyslycer.hmcwraps.events
/
ItemPreviewEvent
Item
Preview
Event
public
class
ItemPreviewEvent
extends
Event
implements
Cancellable
Members
Constructors
Item
Preview
Event
Link copied to clipboard
public
void
ItemPreviewEvent
(
Player
player
,
ItemStack
item
,
Consumer
<
Player
>
onClose
,
Wrap
wrap
)
Properties
is
Cancelled
Link copied to clipboard
public
boolean
isCancelled
item
Link copied to clipboard
public
ItemStack
item
on
Close
Link copied to clipboard
public
Consumer
<
Player
>
onClose
player
Link copied to clipboard
public
Player
player
wrap
Link copied to clipboard
public
final
Wrap
wrap
Functions
get
Event
Name
Link copied to clipboard
public
String
getEventName
(
)
get
Handler
List
Link copied to clipboard
public
static
HandlerList
getHandlerList
(
)
get
Handlers
Link copied to clipboard
@
NotNull
(
)
public
@
NotNull
(
)
HandlerList
getHandlers
(
)
get
Item
Link copied to clipboard
public
ItemStack
getItem
(
)
get
On
Close
Link copied to clipboard
public
Consumer
<
Player
>
getOnClose
(
)
get
Player
Link copied to clipboard
public
Player
getPlayer
(
)
get
Wrap
Link copied to clipboard
public
Wrap
getWrap
(
)
is
Asynchronous
Link copied to clipboard
public
final
boolean
isAsynchronous
(
)
is
Cancelled
Link copied to clipboard
public
boolean
isCancelled
(
)
public
abstract
boolean
isCancelled
(
)
set
Cancelled
Link copied to clipboard
public
void
setCancelled
(
boolean cancel
)
public
abstract
void
setCancelled
(
boolean p
)
set
Item
Link copied to clipboard
public
ItemPreviewEvent
setItem
(
ItemStack
item
)
set
On
Close
Link copied to clipboard
public
ItemPreviewEvent
setOnClose
(
Consumer
<
Player
>
onClose
)
set
Player
Link copied to clipboard
public
ItemPreviewEvent
setPlayer
(
Player
player
)