类 EntityDamageSource
- java.lang.Object
-
- net.minecraft.entity.damage.DamageSource
-
- net.minecraft.entity.damage.EntityDamageSource
-
- 直接已知子类:
ProjectileDamageSource
public class EntityDamageSource extends DamageSource
- Mappings:
Namespace Name official arwintermediary net/minecraft/class_1285named net/minecraft/entity/damage/EntityDamageSource
-
-
字段概要
字段 修饰符和类型 字段 说明 protected Entitysourceprivate booleanthorns-
从类继承的字段 net.minecraft.entity.damage.DamageSource
ANVIL, CACTUS, CRAMMING, DRAGON_BREATH, DROWN, DRYOUT, FALL, FALLING_BLOCK, FALLING_STALACTITE, FLY_INTO_WALL, FREEZE, GENERIC, HOT_FLOOR, IN_FIRE, IN_WALL, LAVA, LIGHTNING_BOLT, MAGIC, name, ON_FIRE, OUT_OF_WORLD, STALAGMITE, STARVE, SWEET_BERRY_BUSH, WITHER
-
-
构造器概要
构造器 构造器 说明 EntityDamageSource(String name, Entity source)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 EntitygetAttacker()TextgetDeathMessage(LivingEntity entity)@Nullable Vec3dgetPosition()booleanisScaledWithDifficulty()booleanisThorns()EntityDamageSourcesetThorns()StringtoString()-
从类继承的方法 net.minecraft.entity.damage.DamageSource
arrow, badRespawnPoint, bypassesArmor, explosion, explosion, fireball, firework, getExhaustion, getName, getSource, isExplosive, isFallingBlock, isFire, isFromFalling, isMagic, isOutOfWorld, isProjectile, isSourceCreativePlayer, isUnblockable, magic, mob, mobProjectile, player, setBypassesArmor, setExplosive, setFallingBlock, setFire, setFromFalling, setOutOfWorld, setProjectile, setScaledWithDifficulty, setUnblockable, setUsesMagic, sting, thorns, thrownProjectile, trident, witherSkull
-
-
-
-
字段详细资料
-
source
protected final Entity source
- Mappings:
Namespace Name Mixin selector official zLarw;z:Lasl;intermediary field_5879Lnet/minecraft/class_1285;field_5879:Lnet/minecraft/class_1297;named sourceLnet/minecraft/entity/damage/EntityDamageSource;source:Lnet/minecraft/entity/Entity;
-
thorns
private boolean thorns
- Mappings:
Namespace Name Mixin selector official ALarw;A:Zintermediary field_5880Lnet/minecraft/class_1285;field_5880:Znamed thornsLnet/minecraft/entity/damage/EntityDamageSource;thorns:Z
-
-
构造器详细资料
-
EntityDamageSource
public EntityDamageSource(String name, Entity source)
- Mappings:
Namespace Name Mixin selector official <init>Larw;<init>(Ljava/lang/String;Lasl;)Vintermediary <init>Lnet/minecraft/class_1285;<init>(Ljava/lang/String;Lnet/minecraft/class_1297;)Vnamed <init>Lnet/minecraft/entity/damage/EntityDamageSource;<init>(Ljava/lang/String;Lnet/minecraft/entity/Entity;)V
-
-
方法详细资料
-
setThorns
public EntityDamageSource setThorns()
- Mappings:
Namespace Name Mixin selector official BLarw;B()Larw;intermediary method_5550Lnet/minecraft/class_1285;method_5550()Lnet/minecraft/class_1285;named setThornsLnet/minecraft/entity/damage/EntityDamageSource;setThorns()Lnet/minecraft/entity/damage/EntityDamageSource;
-
isThorns
public boolean isThorns()
- Mappings:
Namespace Name Mixin selector official CLarw;C()Zintermediary method_5549Lnet/minecraft/class_1285;method_5549()Znamed isThornsLnet/minecraft/entity/damage/EntityDamageSource;isThorns()Z
-
getAttacker
public Entity getAttacker()
- 覆盖:
getAttacker在类中DamageSource- Mappings:
Namespace Name Mixin selector official lLarv;l()Lasl;intermediary method_5529Lnet/minecraft/class_1282;method_5529()Lnet/minecraft/class_1297;named getAttackerLnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;
-
getDeathMessage
public Text getDeathMessage(LivingEntity entity)
- 覆盖:
getDeathMessage在类中DamageSource- Mappings:
Namespace Name Mixin selector official aLarv;a(Lasy;)Lon;intermediary method_5506Lnet/minecraft/class_1282;method_5506(Lnet/minecraft/class_1309;)Lnet/minecraft/class_2561;named getDeathMessageLnet/minecraft/entity/damage/DamageSource;getDeathMessage(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty()
- 覆盖:
isScaledWithDifficulty在类中DamageSource- Mappings:
Namespace Name Mixin selector official uLarv;u()Zintermediary method_5514Lnet/minecraft/class_1282;method_5514()Znamed isScaledWithDifficultyLnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
-
getPosition
@Nullable public @Nullable Vec3d getPosition()
- 覆盖:
getPosition在类中DamageSource- Mappings:
Namespace Name Mixin selector official ALarv;A()Ldma;intermediary method_5510Lnet/minecraft/class_1282;method_5510()Lnet/minecraft/class_243;named getPositionLnet/minecraft/entity/damage/DamageSource;getPosition()Lnet/minecraft/util/math/Vec3d;
-
toString
public String toString()
- 覆盖:
toString在类中DamageSource- Mappings:
Namespace Name Mixin selector official toStringLarv;toString()Ljava/lang/String;intermediary toStringLnet/minecraft/class_1282;toString()Ljava/lang/String;named toStringLnet/minecraft/entity/damage/DamageSource;toString()Ljava/lang/String;
-
-