IDamageSource
Link to idamagesource
An IDamageSource object is the source of damage to an entity.
Diese Klasse importieren
Link to diese-klasse-importieren
It might be required to import the class to avoid errors.
import crafttweaker.damage.IDamageSource;
Zengetters and ZenMethods without parameters
Link to zengetters-and-zenmethods-without-parameters
ZenGetter | ZenMethod | Rückgabetyp |
---|---|---|
ZenGetter harmInCreative | ZenMethod canHarmInCreative(); | Rückgabetyp bool |
ZenGetter damageType | ZenMethod getDamageType(); | Rückgabetyp string |
ZenGetter hungerDamage | ZenMethod getHungerDamage(); | Rückgabetyp float |
ZenGetter immediateSource | ZenMethod getImmediateSource(); | Rückgabetyp IEntity |
ZenGetter trueSource | ZenMethod getTrueSource(); | Rückgabetyp IEntity |
ZenGetter creativePlayer | ZenMethod isCreativePlayer(); | Rückgabetyp bool |
ZenGetter damageLocation | ZenMethod getDamageLocation(); | Rückgabetyp IVector3d |
ZenGetter damageAbsolute | ZenMethod isDamageAbsolute(); | Rückgabetyp bool |
ZenGetter damageUnblockable | ZenMethod isDamageUnblockable(); | Rückgabetyp bool |
ZenGetter difficultyScaled | ZenMethod isDifficultyScaled(); | Rückgabetyp bool |
ZenGetter explosion | ZenMethod isExplosion(); | Rückgabetyp bool |
ZenGetter fireDamage | ZenMethod isFireDamage(); | Rückgabetyp bool |
ZenGetter magicDamage | ZenMethod isMagicDamage(); | Rückgabetyp bool |
ZenGetter projectile | ZenMethod isProjectile(); | Rückgabetyp bool |
ZenGetter | ZenMethod setDamageAllowedInCreativeMode(); | Rückgabetyp IDamageSource |
ZenGetter | ZenMethod setDamageBypassesArmor(); | Rückgabetyp IDamageSource |
ZenGetter | ZenMethod setDamageIsAbsolute(); | Rückgabetyp IDamageSource |
ZenGetter | ZenMethod setDifficultyScaled(); | Rückgabetyp IDamageSource |
ZenGetter | ZenMethod setExplosion(); | Rückgabetyp IDamageSource |
ZenGetter | ZenMethod setFireDamage(); | Rückgabetyp IDamageSource |
ZenGetter | ZenMethod setMagicDamage(); | Rückgabetyp IDamageSource |
ZenGetter | ZenMethod setProjectile(); | Rückgabetyp IDamageSource |
ZenMethod with Parameters
Link to zenmethod-with-parameters
- getDeathMessage(IEntity entity); → Returns a string containing the death message for the entity if it dies by this damageSource
Getting an IDamageSource Object
Link to getting-an-idamagesource-object
You can either use these methods or the Damage Source Bracket Handler.
ZenScript Copycrafttweaker.damage.IDamageSource.createMobDamage(IEntityLivingBase mob)
crafttweaker.damage.IDamageSource.createIndirectDamage(IEntity trueSource, IEntityLivingBase immediateSource)
crafttweaker.damage.IDamageSource.createPlayerDamage(IPlayer player)
crafttweaker.damage.IDamageSource.createThrownDamage(IEntity trueSource, @Optional IEntity immediateSource)
crafttweaker.damage.IDamageSource.createIndirectMagicDamage(IEntity trueSource, @Optional IEntity immediateSource)
crafttweaker.damage.IDamageSource.createThornsDamage(IEntity source)
crafttweaker.damage.IDamageSource.createExplosionDamage(@Optional IEntityLivingBase trueSource)
crafttweaker.damage.IDamageSource.createOfType(String type)
crafttweaker.damage.IDamageSource.createEntityDamage(String type, IEntity source)
crafttweaker.damage.IDamageSource.createIndirectDamage(String type, IEntity trueSource, @Optional IEntity immediateSource)
//Preregistered Damage Types
crafttweaker.damage.IDamageSource.IN_FIRE()
crafttweaker.damage.IDamageSource.LIGHTNING_BOLT()
crafttweaker.damage.IDamageSource.ON_FIRE()
crafttweaker.damage.IDamageSource.LAVA()
crafttweaker.damage.IDamageSource.HOT_FLOOR()
crafttweaker.damage.IDamageSource.IN_WALL()
crafttweaker.damage.IDamageSource.CRAMMING()
crafttweaker.damage.IDamageSource.DROWN()
crafttweaker.damage.IDamageSource.STARVE()
crafttweaker.damage.IDamageSource.CACTUS()
crafttweaker.damage.IDamageSource.FALL()
crafttweaker.damage.IDamageSource.FLY_INTO_WALL()
crafttweaker.damage.IDamageSource.OUT_OF_WORLD()
crafttweaker.damage.IDamageSource.GENERIC()
crafttweaker.damage.IDamageSource.MAGIC()
crafttweaker.damage.IDamageSource.WITHER()
crafttweaker.damage.IDamageSource.ANVIL()
crafttweaker.damage.IDamageSource.FALLING_BLOCK()
crafttweaker.damage.IDamageSource.DRAGON_BREATH()
crafttweaker.damage.IDamageSource.FIREWORKS()