DamageSource
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
Static Methods
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter arrow | Type Arrow |
Parameter owner | Type Entity? |
Return Type: DamageSource
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter explosion | Type Explosion? |
Return Type: DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter owner | Type LivingEntity? | Optional true |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter fireball | Type Fireball |
Parameter owner | Type Entity? |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter entity | Type FireworkRocketEntity |
Parameter owner | Type Entity? |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter owner | Type Entity? |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter owner | Type LivingEntity? |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter living | Type LivingEntity |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter player | Type Player |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter living | Type LivingEntity |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter owner | Type Entity? |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Parameter owner | Type Entity? |
Return Type: DamageSource
Parameter | Type |
---|---|
Parameter witherSkull | Type WitherSkull |
Parameter owner | Type Entity? |
Methods
Return Type: Entity?
Return Type: Entity?
Return Type: float
Return Type: Component
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Return Type: string
Return Type: Vec3?
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: boolean
Return Type: DamageSource
Return Type: DamageSource
Return Type: DamageSource
Return Type: DamageSource
Return Type: DamageSource
Return Type: DamageSource
Properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name directEntity | Type Entity? | Has Getter true | Has Setter false |
Name doesBypassArmor | Type boolean | Has Getter true | Has Setter false |
Name doesBypassInvul | Type boolean | Has Getter true | Has Setter false |
Name doesBypassMagic | Type boolean | Has Getter true | Has Setter false |
Name doesDamageHelmet | Type boolean | Has Getter true | Has Setter false |
Name entity | Type Entity? | Has Getter true | Has Setter false |
Name foodExhaustion | Type float | Has Getter true | Has Setter false |
Name isCreativePlayer | Type boolean | Has Getter true | Has Setter false |
Name isExplosion | Type boolean | Has Getter true | Has Setter false |
Name isFall | Type boolean | Has Getter true | Has Setter false |
Name isFire | Type boolean | Has Getter true | Has Setter false |
Name isMagic | Type boolean | Has Getter true | Has Setter false |
Name isNoAggro | Type boolean | Has Getter true | Has Setter false |
Name isProjectile | Type boolean | Has Getter true | Has Setter false |
Name msgId | Type string | Has Getter true | Has Setter false |
Name scalesWithDifficulty | Type boolean | Has Getter true | Has Setter false |
Name source | Type Vec3? | Has Getter true | Has Setter false |