BetterModel
Toggle table of contents
1.12.2-SNAPSHOT-362
api
Platform filter
api
Switch theme
Search in API
BetterModel
api
/
kr.toxicity.model.api.event
/
ModelDamagedEvent
Model
Damaged
Event
class
ModelDamagedEvent
:
EntityEvent
,
Cancellable
A damage event of hit-box entity
Members
Constructors
Model
Damaged
Event
Link copied to clipboard
@
ApiStatus.Internal
constructor
(
@
NotNull
hitBox
:
@
NotNull
HitBox
,
@
NotNull
source
:
@
NotNull
ModelDamageSource
,
damage
:
Float
)
Creates damage event
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
Entity
Link copied to clipboard
open
fun
getEntity
(
)
:
@
NotNull
Entity
get
Entity
Type
Link copied to clipboard
open
fun
getEntityType
(
)
:
@
NotNull
EntityType
get
Event
Name
Link copied to clipboard
open
fun
getEventName
(
)
:
@
NotNull
String
get
Handler
List
Link copied to clipboard
@
NotNull
open
fun
getHandlerList
(
)
:
@
NotNull
HandlerList
Gets a handler list
get
Handlers
Link copied to clipboard
@
NotNull
open
fun
getHandlers
(
)
:
@
NotNull
HandlerList
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
)