public class MCDamageSource
extends java.lang.Object
implements crafttweaker.api.damage.IDamageSource
Constructor and Description |
---|
MCDamageSource(net.minecraft.util.DamageSource source) |
Modifier and Type | Method and Description |
---|---|
boolean |
canHarmInCreative() |
java.lang.String |
getDamageType() |
java.lang.String |
getDeathMessage(crafttweaker.api.entity.IEntity entity) |
float |
getHungerDamage() |
crafttweaker.api.entity.IEntity |
getImmediateSource() |
java.lang.Object |
getInternal() |
crafttweaker.api.entity.IEntity |
getTrueSource() |
boolean |
isCreativePlayer() |
boolean |
isDamageAbsolute() |
boolean |
isDifficultyScaled() |
boolean |
isExplosion() |
boolean |
isFireDamage() |
boolean |
isMagicDamage() |
boolean |
isProjectile() |
crafttweaker.api.damage.IDamageSource |
setDamageAllowedInCreativeMode() |
crafttweaker.api.damage.IDamageSource |
setDamageBypassesArmor() |
crafttweaker.api.damage.IDamageSource |
setDamageIsAbsolute() |
crafttweaker.api.damage.IDamageSource |
setDifficultyScaled() |
crafttweaker.api.damage.IDamageSource |
setExplosion() |
crafttweaker.api.damage.IDamageSource |
setFireDamage() |
crafttweaker.api.damage.IDamageSource |
setMagicDamage() |
crafttweaker.api.damage.IDamageSource |
setProjectile() |
public boolean canHarmInCreative()
canHarmInCreative
in interface crafttweaker.api.damage.IDamageSource
public java.lang.String getDamageType()
getDamageType
in interface crafttweaker.api.damage.IDamageSource
public java.lang.String getDeathMessage(crafttweaker.api.entity.IEntity entity)
getDeathMessage
in interface crafttweaker.api.damage.IDamageSource
public float getHungerDamage()
getHungerDamage
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.entity.IEntity getImmediateSource()
getImmediateSource
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.entity.IEntity getTrueSource()
getTrueSource
in interface crafttweaker.api.damage.IDamageSource
public boolean isCreativePlayer()
isCreativePlayer
in interface crafttweaker.api.damage.IDamageSource
public boolean isDamageAbsolute()
isDamageAbsolute
in interface crafttweaker.api.damage.IDamageSource
public boolean isDifficultyScaled()
isDifficultyScaled
in interface crafttweaker.api.damage.IDamageSource
public boolean isExplosion()
isExplosion
in interface crafttweaker.api.damage.IDamageSource
public boolean isFireDamage()
isFireDamage
in interface crafttweaker.api.damage.IDamageSource
public boolean isMagicDamage()
isMagicDamage
in interface crafttweaker.api.damage.IDamageSource
public boolean isProjectile()
isProjectile
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.damage.IDamageSource setDamageAllowedInCreativeMode()
setDamageAllowedInCreativeMode
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.damage.IDamageSource setDamageBypassesArmor()
setDamageBypassesArmor
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.damage.IDamageSource setDamageIsAbsolute()
setDamageIsAbsolute
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.damage.IDamageSource setDifficultyScaled()
setDifficultyScaled
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.damage.IDamageSource setExplosion()
setExplosion
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.damage.IDamageSource setFireDamage()
setFireDamage
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.damage.IDamageSource setMagicDamage()
setMagicDamage
in interface crafttweaker.api.damage.IDamageSource
public crafttweaker.api.damage.IDamageSource setProjectile()
setProjectile
in interface crafttweaker.api.damage.IDamageSource
public java.lang.Object getInternal()
getInternal
in interface crafttweaker.api.damage.IDamageSource