DamageSource
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
static create(type as DamageType, directEntity as Entity = null, causingEntity as Entity = null) as DamageSource
Parameters:
type: DamageType
Type: DamageType
Return Type:
DamageSource
static create(type as DamageType, damageSourcePosition as Vec3) as DamageSource
Parameters:
type: DamageType
Type: DamageType
Return Type:
DamageSource
Getter
Return Type:
Entity
Getter
Return Type:
Entity
Getter
Return Type:
float
getLocalizedDeathMessage(entity as LivingEntity) as Component
Parameters:
entity: LivingEntity
Type: LivingEntity
Return Type:
Component
Getter
Return Type:
bool
Getter
Return Type:
bool
isIn(tag as KnownTag<DamageType>) as bool
Parameters:
tag: KnownTag<DamageType>
Type: KnownTag<DamageType>
Return Type:
bool
Getter
Return Type:
string
Getter
Return Type:
bool
Getter
Return Type:
Vec3
Getter
Return Type:
Vec3
Getter
Return Type:
DamageType