类 EntityDamageSource

  • 直接已知子类:
    ProjectileDamageSource

    public class EntityDamageSource
    extends DamageSource
    Mappings:
    Namespace Name
    official arw
    intermediary net/minecraft/class_1285
    named net/minecraft/entity/damage/EntityDamageSource
    • 字段详细资料

      • source

        protected final Entity source
        Mappings:
        Namespace Name Mixin selector
        official z Larw;z:Lasl;
        intermediary field_5879 Lnet/minecraft/class_1285;field_5879:Lnet/minecraft/class_1297;
        named source Lnet/minecraft/entity/damage/EntityDamageSource;source:Lnet/minecraft/entity/Entity;
      • thorns

        private boolean thorns
        Mappings:
        Namespace Name Mixin selector
        official A Larw;A:Z
        intermediary field_5880 Lnet/minecraft/class_1285;field_5880:Z
        named thorns Lnet/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;)V
        intermediary <init> Lnet/minecraft/class_1285;<init>(Ljava/lang/String;Lnet/minecraft/class_1297;)V
        named <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 B Larw;B()Larw;
        intermediary method_5550 Lnet/minecraft/class_1285;method_5550()Lnet/minecraft/class_1285;
        named setThorns Lnet/minecraft/entity/damage/EntityDamageSource;setThorns()Lnet/minecraft/entity/damage/EntityDamageSource;
      • isThorns

        public boolean isThorns()
        Mappings:
        Namespace Name Mixin selector
        official C Larw;C()Z
        intermediary method_5549 Lnet/minecraft/class_1285;method_5549()Z
        named isThorns Lnet/minecraft/entity/damage/EntityDamageSource;isThorns()Z
      • getAttacker

        public Entity getAttacker()
        覆盖:
        getAttacker 在类中 DamageSource
        Mappings:
        Namespace Name Mixin selector
        official l Larv;l()Lasl;
        intermediary method_5529 Lnet/minecraft/class_1282;method_5529()Lnet/minecraft/class_1297;
        named getAttacker Lnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;
      • getDeathMessage

        public Text getDeathMessage​(LivingEntity entity)
        覆盖:
        getDeathMessage 在类中 DamageSource
        Mappings:
        Namespace Name Mixin selector
        official a Larv;a(Lasy;)Lon;
        intermediary method_5506 Lnet/minecraft/class_1282;method_5506(Lnet/minecraft/class_1309;)Lnet/minecraft/class_2561;
        named getDeathMessage Lnet/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 u Larv;u()Z
        intermediary method_5514 Lnet/minecraft/class_1282;method_5514()Z
        named isScaledWithDifficulty Lnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
      • getPosition

        @Nullable
        public @Nullable Vec3d getPosition()
        覆盖:
        getPosition 在类中 DamageSource
        Mappings:
        Namespace Name Mixin selector
        official A Larv;A()Ldma;
        intermediary method_5510 Lnet/minecraft/class_1282;method_5510()Lnet/minecraft/class_243;
        named getPosition Lnet/minecraft/entity/damage/DamageSource;getPosition()Lnet/minecraft/util/math/Vec3d;
      • toString

        public String toString()
        覆盖:
        toString 在类中 DamageSource
        Mappings:
        Namespace Name Mixin selector
        official toString Larv;toString()Ljava/lang/String;
        intermediary toString Lnet/minecraft/class_1282;toString()Ljava/lang/String;
        named toString Lnet/minecraft/entity/damage/DamageSource;toString()Ljava/lang/String;