BetterModel
Toggle table of contents
1.4.3
api
Platform filter
api
Switch theme
Search in API
BetterModel
api
/
kr.toxicity.model.api.event
/
ModelInteractEvent
Model
Interact
Event
class
ModelInteractEvent
:
PlayerEvent
,
Cancellable
An interact event of damage event
Members
Constructors
Model
Interact
Event
Link copied to clipboard
constructor
(
@
NotNull
who
:
Player
,
@
NotNull
hitBox
:
HitBox
,
@
NotNull
hand
:
ModelInteractEvent.Hand
)
Creates interact event
Types
Hand
Link copied to clipboard
enum
Hand
Hand
Properties
HANDLER_
LIST
Link copied to clipboard
val
HANDLER_LIST
:
HandlerList
Handler list
Functions
call
Event
Link copied to clipboard
open
fun
callEvent
(
)
:
Boolean
get
Event
Name
Link copied to clipboard
open
fun
getEventName
(
)
:
@
NotNull
String
get
Handler
List
Link copied to clipboard
@
NotNull
open
fun
getHandlerList
(
)
:
HandlerList
Gets handler list
get
Handlers
Link copied to clipboard
@
NotNull
open
fun
getHandlers
(
)
:
HandlerList
get
Player
Link copied to clipboard
fun
getPlayer
(
)
:
@
NotNull
Player
is
Asynchronous
Link copied to clipboard
fun
isAsynchronous
(
)
:
Boolean
is
Cancelled
Link copied to clipboard
abstract
fun
isCancelled
(
)
:
Boolean
set
Cancelled
Link copied to clipboard
abstract
fun
setCancelled
(
p
:
Boolean
)