DamageSources
Link to damagesources
Importing the class
Link to 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.
ZenScript Copyimport crafttweaker.api.world.damage.DamageSources;
Methods
Link to methods
Name: anvil
Return Type: DamageSource
ZenScript CopyDamageSources.anvil(entity as Entity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: arrow
Return Type: DamageSource
ZenScript CopyDamageSources.arrow(arrow as Arrow, cause as Entity) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter arrow | Type Arrow | Optional false |
Parameter cause | Type Entity | Optional true |
Name: badRespawnPointExplosion
Return Type: DamageSource
ZenScript CopyDamageSources.badRespawnPointExplosion(position as Vec3) as DamageSource
Parameter | Type |
---|---|
Parameter position | Type Vec3 |
Name: explosion
Return Type: DamageSource
ZenScript CopyDamageSources.explosion(explosion as Explosion) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter explosion | Type Explosion | Optional true |
Name: explosion
Return Type: DamageSource
ZenScript CopyDamageSources.explosion(entity as Entity, cause as Entity) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter entity | Type Entity | Optional true |
Parameter cause | Type Entity | Optional true |
Name: fallingBlock
Return Type: DamageSource
ZenScript CopyDamageSources.fallingBlock(entity as Entity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: fallingStalactite
Return Type: DamageSource
ZenScript CopyDamageSources.fallingStalactite(entity as Entity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: fireball
Return Type: DamageSource
ZenScript CopyDamageSources.fireball(entity as Fireball, cause as Entity) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter entity | Type Fireball | Optional false |
Parameter cause | Type Entity | Optional true |
Name: fireworks
Return Type: DamageSource
ZenScript CopyDamageSources.fireworks(entity as FireworkRocketEntity, cause as Entity) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter entity | Type FireworkRocketEntity | Optional false |
Parameter cause | Type Entity | Optional true |
Name: indirectMagic
Return Type: DamageSource
ZenScript CopyDamageSources.indirectMagic(entity as Entity, cause as Entity) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter entity | Type Entity | Optional false |
Parameter cause | Type Entity | Optional true |
Name: mobAttack
Return Type: DamageSource
ZenScript CopyDamageSources.mobAttack(entity as LivingEntity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Name: mobProjectile
Return Type: DamageSource
ZenScript CopyDamageSources.mobProjectile(entity as Entity, cause as LivingEntity) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter entity | Type Entity | Optional false |
Parameter cause | Type LivingEntity | Optional true |
Name: noAggroMobAttack
Return Type: DamageSource
ZenScript CopyDamageSources.noAggroMobAttack(entity as LivingEntity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Name: playerAttack
Return Type: DamageSource
ZenScript CopyDamageSources.playerAttack(player as Player) as DamageSource
Parameter | Type |
---|---|
Parameter player | Type Player |
Name: sonicBoom
Return Type: DamageSource
ZenScript CopyDamageSources.sonicBoom(entity as Entity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: sting
Return Type: DamageSource
ZenScript CopyDamageSources.sting(entity as LivingEntity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type LivingEntity |
Name: thorns
Return Type: DamageSource
ZenScript CopyDamageSources.thorns(entity as Entity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type Entity |
Name: thrown
Return Type: DamageSource
ZenScript CopyDamageSources.thrown(entity as Entity, cause as Entity) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter entity | Type Entity | Optional false |
Parameter cause | Type Entity | Optional true |
Name: trident
Return Type: DamageSource
ZenScript CopyDamageSources.trident(entity as Entity, cause as Entity) as DamageSource
Parameter | Type | Optional |
---|---|---|
Parameter entity | Type Entity | Optional false |
Parameter cause | Type Entity | Optional true |
Name: witherSkull
Return Type: DamageSource
ZenScript CopyDamageSources.witherSkull(entity as WitherSkull, cause as Entity) as DamageSource
Parameter | Type |
---|---|
Parameter entity | Type WitherSkull |
Parameter cause | Type Entity |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name ​ | Type DamageSource | Has Getter true | Has Setter false |
Name cactus | Type DamageSource | Has Getter true | Has Setter false |
Name cramming | Type DamageSource | Has Getter true | Has Setter false |
Name dragonBreath | Type DamageSource | Has Getter true | Has Setter false |
Name drown | Type DamageSource | Has Getter true | Has Setter false |
Name dryOut | Type DamageSource | Has Getter true | Has Setter false |
Name fall | Type DamageSource | Has Getter true | Has Setter false |
Name fellOutOfWorld | Type DamageSource | Has Getter true | Has Setter false |
Name flyIntoWall | Type DamageSource | Has Getter true | Has Setter false |
Name freeze | Type DamageSource | Has Getter true | Has Setter false |
Name generic | Type DamageSource | Has Getter true | Has Setter false |
Name hotFloor | Type DamageSource | Has Getter true | Has Setter false |
Name inFire | Type DamageSource | Has Getter true | Has Setter false |
Name inWall | Type DamageSource | Has Getter true | Has Setter false |
Name lava | Type DamageSource | Has Getter true | Has Setter false |
Name lightningBolt | Type DamageSource | Has Getter true | Has Setter false |
Name magic | Type DamageSource | Has Getter true | Has Setter false |
Name onFire | Type DamageSource | Has Getter true | Has Setter false |
Name stalagmite | Type DamageSource | Has Getter true | Has Setter false |
Name starve | Type DamageSource | Has Getter true | Has Setter false |
Name sweetBerryBush | Type DamageSource | Has Getter true | Has Setter false |
Name wither | Type DamageSource | Has Getter true | Has Setter false |