Package net.minecraft.entity.damage
Class DamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
- Mappings:
Namespace Name official bho
intermediary net/minecraft/class_1282
named net/minecraft/entity/damage/DamageSource
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionDamageSource
(RegistryEntry<DamageType> type) DamageSource
(RegistryEntry<DamageType> type, @Nullable Entity attacker) DamageSource
(RegistryEntry<DamageType> type, @Nullable Entity source, @Nullable Entity attacker) private
DamageSource
(RegistryEntry<DamageType> type, @Nullable Entity source, @Nullable Entity attacker, @Nullable Vec3d position) DamageSource
(RegistryEntry<DamageType> type, Vec3d position) -
Method Summary
Modifier and TypeMethodDescriptiongetDeathMessage
(LivingEntity killed) float
getName()
getType()
boolean
isIn
(TagKey<DamageType> tag) boolean
boolean
isOf
(RegistryKey<DamageType> typeKey) boolean
boolean
toString()
-
Field Details
-
type
- Mappings:
Namespace Name Mixin selector official a
Lbho;a:Lhe;
intermediary field_42291
Lnet/minecraft/class_1282;field_42291:Lnet/minecraft/class_6880;
named type
Lnet/minecraft/entity/damage/DamageSource;type:Lnet/minecraft/registry/entry/RegistryEntry;
-
attacker
- Mappings:
Namespace Name Mixin selector official b
Lbho;b:Lbiq;
intermediary field_42292
Lnet/minecraft/class_1282;field_42292:Lnet/minecraft/class_1297;
named attacker
Lnet/minecraft/entity/damage/DamageSource;attacker:Lnet/minecraft/entity/Entity;
-
source
- Mappings:
Namespace Name Mixin selector official c
Lbho;c:Lbiq;
intermediary field_42293
Lnet/minecraft/class_1282;field_42293:Lnet/minecraft/class_1297;
named source
Lnet/minecraft/entity/damage/DamageSource;source:Lnet/minecraft/entity/Entity;
-
position
- Mappings:
Namespace Name Mixin selector official d
Lbho;d:Lehn;
intermediary field_42294
Lnet/minecraft/class_1282;field_42294:Lnet/minecraft/class_243;
named position
Lnet/minecraft/entity/damage/DamageSource;position:Lnet/minecraft/util/math/Vec3d;
-
-
Constructor Details
-
DamageSource
private DamageSource(RegistryEntry<DamageType> type, @Nullable @Nullable Entity source, @Nullable @Nullable Entity attacker, @Nullable @Nullable Vec3d position) - Mappings:
Namespace Name Mixin selector official <init>
Lbho;<init>(Lhe;Lbiq;Lbiq;Lehn;)V
intermediary <init>
Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;)V
named <init>
Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;)V
-
DamageSource
public DamageSource(RegistryEntry<DamageType> type, @Nullable @Nullable Entity source, @Nullable @Nullable Entity attacker) - Mappings:
Namespace Name Mixin selector official <init>
Lbho;<init>(Lhe;Lbiq;Lbiq;)V
intermediary <init>
Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)V
named <init>
Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)V
-
DamageSource
- Mappings:
Namespace Name Mixin selector official <init>
Lbho;<init>(Lhe;Lehn;)V
intermediary <init>
Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_243;)V
named <init>
Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/Vec3d;)V
-
DamageSource
- Mappings:
Namespace Name Mixin selector official <init>
Lbho;<init>(Lhe;Lbiq;)V
intermediary <init>
Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;)V
named <init>
Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;)V
-
DamageSource
- Mappings:
Namespace Name Mixin selector official <init>
Lbho;<init>(Lhe;)V
intermediary <init>
Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;)V
named <init>
Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;)V
-
-
Method Details
-
toString
-
getExhaustion
public float getExhaustion()- Mappings:
Namespace Name Mixin selector official a
Lbho;a()F
intermediary method_5528
Lnet/minecraft/class_1282;method_5528()F
named getExhaustion
Lnet/minecraft/entity/damage/DamageSource;getExhaustion()F
-
isIndirect
public boolean isIndirect()- Mappings:
Namespace Name Mixin selector official b
Lbho;b()Z
intermediary method_48790
Lnet/minecraft/class_1282;method_48790()Z
named isIndirect
Lnet/minecraft/entity/damage/DamageSource;isIndirect()Z
-
getSource
- Mappings:
Namespace Name Mixin selector official c
Lbho;c()Lbiq;
intermediary method_5526
Lnet/minecraft/class_1282;method_5526()Lnet/minecraft/class_1297;
named getSource
Lnet/minecraft/entity/damage/DamageSource;getSource()Lnet/minecraft/entity/Entity;
-
getAttacker
- Mappings:
Namespace Name Mixin selector official d
Lbho;d()Lbiq;
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
- Mappings:
Namespace Name Mixin selector official a
Lbho;a(Lbjg;)Ltl;
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;
-
getName
- Mappings:
Namespace Name Mixin selector official e
Lbho;e()Ljava/lang/String;
intermediary method_5525
Lnet/minecraft/class_1282;method_5525()Ljava/lang/String;
named getName
Lnet/minecraft/entity/damage/DamageSource;getName()Ljava/lang/String;
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty()- Mappings:
Namespace Name Mixin selector official f
Lbho;f()Z
intermediary method_5514
Lnet/minecraft/class_1282;method_5514()Z
named isScaledWithDifficulty
Lnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
-
isSourceCreativePlayer
public boolean isSourceCreativePlayer()- Mappings:
Namespace Name Mixin selector official g
Lbho;g()Z
intermediary method_5530
Lnet/minecraft/class_1282;method_5530()Z
named isSourceCreativePlayer
Lnet/minecraft/entity/damage/DamageSource;isSourceCreativePlayer()Z
-
getPosition
- Mappings:
Namespace Name Mixin selector official h
Lbho;h()Lehn;
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;
-
getStoredPosition
- Mappings:
Namespace Name Mixin selector official i
Lbho;i()Lehn;
intermediary method_48791
Lnet/minecraft/class_1282;method_48791()Lnet/minecraft/class_243;
named getStoredPosition
Lnet/minecraft/entity/damage/DamageSource;getStoredPosition()Lnet/minecraft/util/math/Vec3d;
-
isIn
- Mappings:
Namespace Name Mixin selector official a
Lbho;a(Laqh;)Z
intermediary method_48789
Lnet/minecraft/class_1282;method_48789(Lnet/minecraft/class_6862;)Z
named isIn
Lnet/minecraft/entity/damage/DamageSource;isIn(Lnet/minecraft/registry/tag/TagKey;)Z
-
isOf
- Mappings:
Namespace Name Mixin selector official a
Lbho;a(Laev;)Z
intermediary method_49708
Lnet/minecraft/class_1282;method_49708(Lnet/minecraft/class_5321;)Z
named isOf
Lnet/minecraft/entity/damage/DamageSource;isOf(Lnet/minecraft/registry/RegistryKey;)Z
-
getType
- Mappings:
Namespace Name Mixin selector official j
Lbho;j()Lbhq;
intermediary method_48792
Lnet/minecraft/class_1282;method_48792()Lnet/minecraft/class_8110;
named getType
Lnet/minecraft/entity/damage/DamageSource;getType()Lnet/minecraft/entity/damage/DamageType;
-
getTypeRegistryEntry
- Mappings:
Namespace Name Mixin selector official k
Lbho;k()Lhe;
intermediary method_48793
Lnet/minecraft/class_1282;method_48793()Lnet/minecraft/class_6880;
named getTypeRegistryEntry
Lnet/minecraft/entity/damage/DamageSource;getTypeRegistryEntry()Lnet/minecraft/registry/entry/RegistryEntry;
-