YATS/Forge Documentation
|
Public Member Functions | |
boolean | isProjectile () |
DamageSource | setProjectile () |
boolean | isExplosion () |
DamageSource | setExplosion () |
boolean | isUnblockable () |
float | getHungerDamage () |
boolean | canHarmInCreative () |
Entity | getSourceOfDamage () |
Entity | getEntity () |
String | getDeathMessage (EntityLiving par1EntityLiving) |
boolean | isFireDamage () |
String | getDamageType () |
DamageSource | setDifficultyScaled () |
boolean | isDifficultyScaled () |
boolean | isMagicDamage () |
DamageSource | setMagicDamage () |
Static Public Member Functions | |
static DamageSource | causeMobDamage (EntityLiving par0EntityLiving) |
static DamageSource | causePlayerDamage (EntityPlayer par0EntityPlayer) |
static DamageSource | causeArrowDamage (EntityArrow par0EntityArrow, Entity par1Entity) |
static DamageSource | causeFireballDamage (EntityFireball par0EntityFireball, Entity par1Entity) |
static DamageSource | causeThrownDamage (Entity par0Entity, Entity par1Entity) |
static DamageSource | causeIndirectMagicDamage (Entity par0Entity, Entity par1Entity) |
static DamageSource | causeThornsDamage (Entity par0Entity) |
static DamageSource | setExplosionSource (Explosion par0Explosion) |
Public Attributes | |
String | damageType |
Static Public Attributes | |
static DamageSource | inFire = (new DamageSource("inFire")).setFireDamage() |
static DamageSource | onFire = (new DamageSource("onFire")).setDamageBypassesArmor().setFireDamage() |
static DamageSource | lava = (new DamageSource("lava")).setFireDamage() |
static DamageSource | inWall = (new DamageSource("inWall")).setDamageBypassesArmor() |
static DamageSource | drown = (new DamageSource("drown")).setDamageBypassesArmor() |
static DamageSource | starve = (new DamageSource("starve")).setDamageBypassesArmor() |
static DamageSource | cactus = new DamageSource("cactus") |
static DamageSource | fall = (new DamageSource("fall")).setDamageBypassesArmor() |
static DamageSource | outOfWorld = (new DamageSource("outOfWorld")).setDamageBypassesArmor().setDamageAllowedInCreativeMode() |
static DamageSource | generic = (new DamageSource("generic")).setDamageBypassesArmor() |
static DamageSource | magic = (new DamageSource("magic")).setDamageBypassesArmor().setMagicDamage() |
static DamageSource | wither = (new DamageSource("wither")).setDamageBypassesArmor() |
static DamageSource | anvil = new DamageSource("anvil") |
static DamageSource | fallingBlock = new DamageSource("fallingBlock") |
Protected Member Functions | |
DamageSource (String par1Str) | |
DamageSource | setDamageBypassesArmor () |
DamageSource | setDamageAllowedInCreativeMode () |
DamageSource | setFireDamage () |
|
protected |
boolean net.minecraft.util.DamageSource.canHarmInCreative | ( | ) |
|
static |
returns EntityDamageSourceIndirect of an arrow
|
static |
returns EntityDamageSourceIndirect of a fireball
|
static |
|
static |
|
static |
returns an EntityDamageSource of type player
|
static |
Returns the EntityDamageSource of the Thorns enchantment
|
static |
String net.minecraft.util.DamageSource.getDamageType | ( | ) |
Return the name of damage type.
String net.minecraft.util.DamageSource.getDeathMessage | ( | EntityLiving | par1EntityLiving) |
Returns the message to be displayed on player death.
Entity net.minecraft.util.DamageSource.getEntity | ( | ) |
float net.minecraft.util.DamageSource.getHungerDamage | ( | ) |
How much satiate(food) is consumed by this DamageSource
Entity net.minecraft.util.DamageSource.getSourceOfDamage | ( | ) |
boolean net.minecraft.util.DamageSource.isDifficultyScaled | ( | ) |
Return whether this damage source will have its damage amount scaled based on the current difficulty.
boolean net.minecraft.util.DamageSource.isExplosion | ( | ) |
boolean net.minecraft.util.DamageSource.isFireDamage | ( | ) |
Returns true if the damage is fire based.
boolean net.minecraft.util.DamageSource.isMagicDamage | ( | ) |
Returns true if the damage is magic based.
boolean net.minecraft.util.DamageSource.isProjectile | ( | ) |
Returns true if the damage is projectile based.
boolean net.minecraft.util.DamageSource.isUnblockable | ( | ) |
|
protected |
|
protected |
DamageSource net.minecraft.util.DamageSource.setDifficultyScaled | ( | ) |
Set whether this damage source will have its damage amount scaled based on the current difficulty.
DamageSource net.minecraft.util.DamageSource.setExplosion | ( | ) |
|
static |
|
protected |
Define the damage type as fire based.
DamageSource net.minecraft.util.DamageSource.setMagicDamage | ( | ) |
Define the damage type as magic based.
DamageSource net.minecraft.util.DamageSource.setProjectile | ( | ) |
Define the damage type as projectile based.
|
static |
|
static |
String net.minecraft.util.DamageSource.damageType |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |