类 ProjectileDamageSource
- java.lang.Object
-
- net.minecraft.entity.damage.DamageSource
-
- net.minecraft.entity.damage.EntityDamageSource
-
- net.minecraft.entity.damage.ProjectileDamageSource
-
public class ProjectileDamageSource extends EntityDamageSource
- Mappings:
Namespace Name official arxintermediary net/minecraft/class_1284named net/minecraft/entity/damage/ProjectileDamageSource
-
-
字段概要
字段 修饰符和类型 字段 说明 private @Nullable Entityattacker-
从类继承的字段 net.minecraft.entity.damage.EntityDamageSource
source
-
从类继承的字段 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
-
-
构造器概要
构造器 构造器 说明 ProjectileDamageSource(String name, Entity projectile, @Nullable Entity attacker)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 @Nullable EntitygetAttacker()TextgetDeathMessage(LivingEntity entity)@Nullable EntitygetSource()-
从类继承的方法 net.minecraft.entity.damage.EntityDamageSource
getPosition, isScaledWithDifficulty, isThorns, setThorns, toString
-
从类继承的方法 net.minecraft.entity.damage.DamageSource
arrow, badRespawnPoint, bypassesArmor, explosion, explosion, fireball, firework, getExhaustion, getName, 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
-
-
-
-
字段详细资料
-
attacker
@Nullable private final @Nullable Entity attacker
- Mappings:
Namespace Name Mixin selector official ALarx;A:Lasl;intermediary field_5878Lnet/minecraft/class_1284;field_5878:Lnet/minecraft/class_1297;named attackerLnet/minecraft/entity/damage/ProjectileDamageSource;attacker:Lnet/minecraft/entity/Entity;
-
-
构造器详细资料
-
ProjectileDamageSource
public ProjectileDamageSource(String name, Entity projectile, @Nullable @Nullable Entity attacker)
- Mappings:
Namespace Name Mixin selector official <init>Larx;<init>(Ljava/lang/String;Lasl;Lasl;)Vintermediary <init>Lnet/minecraft/class_1284;<init>(Ljava/lang/String;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)Vnamed <init>Lnet/minecraft/entity/damage/ProjectileDamageSource;<init>(Ljava/lang/String;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)V
-
-
方法详细资料
-
getSource
@Nullable public @Nullable Entity getSource()
- 覆盖:
getSource在类中DamageSource- Mappings:
Namespace Name Mixin selector official kLarv;k()Lasl;intermediary method_5526Lnet/minecraft/class_1282;method_5526()Lnet/minecraft/class_1297;named getSourceLnet/minecraft/entity/damage/DamageSource;getSource()Lnet/minecraft/entity/Entity;
-
getAttacker
@Nullable public @Nullable Entity getAttacker()
- 覆盖:
getAttacker在类中EntityDamageSource- 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在类中EntityDamageSource- 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;
-
-