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() |
boolean |
equals(java.lang.Object o) |
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() |
int |
hashCode() |
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.IDamageSourcepublic java.lang.String getDamageType()
getDamageType in interface crafttweaker.api.damage.IDamageSourcepublic java.lang.String getDeathMessage(crafttweaker.api.entity.IEntity entity)
getDeathMessage in interface crafttweaker.api.damage.IDamageSourcepublic float getHungerDamage()
getHungerDamage in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.entity.IEntity getImmediateSource()
getImmediateSource in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.entity.IEntity getTrueSource()
getTrueSource in interface crafttweaker.api.damage.IDamageSourcepublic boolean isCreativePlayer()
isCreativePlayer in interface crafttweaker.api.damage.IDamageSourcepublic boolean isDamageAbsolute()
isDamageAbsolute in interface crafttweaker.api.damage.IDamageSourcepublic boolean isDifficultyScaled()
isDifficultyScaled in interface crafttweaker.api.damage.IDamageSourcepublic boolean isExplosion()
isExplosion in interface crafttweaker.api.damage.IDamageSourcepublic boolean isFireDamage()
isFireDamage in interface crafttweaker.api.damage.IDamageSourcepublic boolean isMagicDamage()
isMagicDamage in interface crafttweaker.api.damage.IDamageSourcepublic boolean isProjectile()
isProjectile in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.damage.IDamageSource setDamageAllowedInCreativeMode()
setDamageAllowedInCreativeMode in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.damage.IDamageSource setDamageBypassesArmor()
setDamageBypassesArmor in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.damage.IDamageSource setDamageIsAbsolute()
setDamageIsAbsolute in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.damage.IDamageSource setDifficultyScaled()
setDifficultyScaled in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.damage.IDamageSource setExplosion()
setExplosion in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.damage.IDamageSource setFireDamage()
setFireDamage in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.damage.IDamageSource setMagicDamage()
setMagicDamage in interface crafttweaker.api.damage.IDamageSourcepublic crafttweaker.api.damage.IDamageSource setProjectile()
setProjectile in interface crafttweaker.api.damage.IDamageSourcepublic java.lang.Object getInternal()
getInternal in interface crafttweaker.api.damage.IDamageSourcepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object