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.
import crafttweaker . api.world.damage . DamageSources;
// DamageSources.anvil(entity as Entity) as DamageSource;
myDamageSources . anvil(myEntity);
Return Type:
DamageSource
// DamageSources.arrow(arrow as AbstractArrow, cause as Entity = null) as DamageSource;
myDamageSources . arrow(myAbstractArrow, myEntity);
Return Type:
DamageSource
// DamageSources.badRespawnPointExplosion(position as Vec3) as DamageSource;
myDamageSources . badRespawnPointExplosion(myVec3);
Return Type:
DamageSource
// DamageSources.cactus as DamageSource
Return Type:
DamageSource
// DamageSources.cramming as DamageSource
Return Type:
DamageSource
// DamageSources.dragonBreath as DamageSource
myDamageSources . dragonBreath
Return Type:
DamageSource
// DamageSources.drown as DamageSource
Return Type:
DamageSource
// DamageSources.dryOut as DamageSource
Return Type:
DamageSource
// DamageSources.explosion(explosion as Explosion = null) as DamageSource;
myDamageSources . explosion(myExplosion);
Return Type:
DamageSource
// DamageSources.explosion(entity as Entity = null, cause as Entity = null) as DamageSource;
myDamageSources . explosion(myEntity, myEntity);
Return Type:
DamageSource
// DamageSources.fall as DamageSource
Return Type:
DamageSource
// DamageSources.fallingBlock(entity as Entity) as DamageSource;
myDamageSources . fallingBlock(myEntity);
Return Type:
DamageSource
// DamageSources.fallingStalactite(entity as Entity) as DamageSource;
myDamageSources . fallingStalactite(myEntity);
Return Type:
DamageSource
// DamageSources.fellOutOfWorld as DamageSource
myDamageSources . fellOutOfWorld
Return Type:
DamageSource
// DamageSources.fireball(entity as Fireball, cause as Entity = null) as DamageSource;
myDamageSources . fireball(myFireball, myEntity);
Return Type:
DamageSource
// DamageSources.fireworks(entity as FireworkRocketEntity, cause as Entity = null) as DamageSource;
myDamageSources . fireworks(myFireworkRocketEntity, myEntity);
Return Type:
DamageSource
// DamageSources.flyIntoWall as DamageSource
myDamageSources . flyIntoWall
Return Type:
DamageSource
// DamageSources.freeze as DamageSource
Return Type:
DamageSource
// DamageSources.generic as DamageSource
Return Type:
DamageSource
// DamageSources.genericKill as DamageSource
myDamageSources . genericKill
Return Type:
DamageSource
// DamageSources.hotFloor as DamageSource
Return Type:
DamageSource
// DamageSources.indirectMagic(entity as Entity, cause as Entity = null) as DamageSource;
myDamageSources . indirectMagic(myEntity, myEntity);
Return Type:
DamageSource
// DamageSources.inFire as DamageSource
Return Type:
DamageSource
// DamageSources.inWall as DamageSource
Return Type:
DamageSource
// DamageSources.lava as DamageSource
Return Type:
DamageSource
// DamageSources.lightningBolt as DamageSource
myDamageSources . lightningBolt
Return Type:
DamageSource
// DamageSources.magic as DamageSource
Return Type:
DamageSource
// DamageSources.mobAttack(entity as LivingEntity) as DamageSource;
myDamageSources . mobAttack(myLivingEntity);
Return Type:
DamageSource
// DamageSources.mobProjectile(entity as Entity, cause as LivingEntity = null) as DamageSource;
myDamageSources . mobProjectile(myEntity, myLivingEntity);
Return Type:
DamageSource
// DamageSources.noAggroMobAttack(entity as LivingEntity) as DamageSource;
myDamageSources . noAggroMobAttack(myLivingEntity);
Return Type:
DamageSource
// DamageSources.onFire as DamageSource
Return Type:
DamageSource
// DamageSources.outOfBorder as DamageSource
myDamageSources . outOfBorder
Return Type:
DamageSource
// DamageSources.playerAttack(player as Player) as DamageSource;
myDamageSources . playerAttack(myPlayer);
Return Type:
DamageSource
// DamageSources.sonicBoom(entity as Entity) as DamageSource;
myDamageSources . sonicBoom(myEntity);
Return Type:
DamageSource
// DamageSources.stalagmite as DamageSource
myDamageSources . stalagmite
Return Type:
DamageSource
// DamageSources.starve as DamageSource
Return Type:
DamageSource
// DamageSources.sting(entity as LivingEntity) as DamageSource;
myDamageSources . sting(myLivingEntity);
Return Type:
DamageSource
// DamageSources.sweetBerryBush as DamageSource
myDamageSources . sweetBerryBush
Return Type:
DamageSource
// DamageSources.thorns(entity as Entity) as DamageSource;
myDamageSources . thorns(myEntity);
Return Type:
DamageSource
// DamageSources.thrown(entity as Entity, cause as Entity = null) as DamageSource;
myDamageSources . thrown(myEntity, myEntity);
Return Type:
DamageSource
// DamageSources.trident(entity as Entity, cause as Entity = null) as DamageSource;
myDamageSources . trident(myEntity, myEntity);
Return Type:
DamageSource
// DamageSources.wither as DamageSource
Return Type:
DamageSource
// DamageSources.witherSkull(entity as WitherSkull, cause as Entity) as DamageSource;
myDamageSources . witherSkull(myWitherSkull, myEntity);
Return Type:
DamageSource