Package net.minecraft.entity.damage
Class DamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
- Mappings:
- Namespace - Name - official - ben- intermediary - net/minecraft/class_1282- named - net/minecraft/entity/damage/DamageSource
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionDamageSource(RegistryEntry<DamageType> type) DamageSource(RegistryEntry<DamageType> type, @Nullable Entity attacker) DamageSource(RegistryEntry<DamageType> type, @Nullable Entity source, @Nullable Entity attacker) privateDamageSource(RegistryEntry<DamageType> type, @Nullable Entity source, @Nullable Entity attacker, @Nullable Vec3d position) DamageSource(RegistryEntry<DamageType> type, Vec3d position) 
- 
Method SummaryModifier and TypeMethodDescriptiongetDeathMessage(LivingEntity killed) floatgetName()getType()booleanisIn(TagKey<DamageType> tag) booleanbooleanisOf(RegistryKey<DamageType> typeKey) booleanbooleantoString()
- 
Field Details- 
type- Mappings:
- Namespace - Name - Mixin selector - official - a- Lben;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- Lben;b:Lbfj;- 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- Lben;c:Lbfj;- 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- Lben;d:Leei;- 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- 
DamageSourceprivate DamageSource(RegistryEntry<DamageType> type, @Nullable @Nullable Entity source, @Nullable @Nullable Entity attacker, @Nullable @Nullable Vec3d position) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lben;<init>(Lhe;Lbfj;Lbfj;Leei;)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
 
- 
DamageSourcepublic DamageSource(RegistryEntry<DamageType> type, @Nullable @Nullable Entity source, @Nullable @Nullable Entity attacker) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lben;<init>(Lhe;Lbfj;Lbfj;)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>- Lben;<init>(Lhe;Leei;)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>- Lben;<init>(Lhe;Lbfj;)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>- Lben;<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
- 
getExhaustionpublic float getExhaustion()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lben;a()F- intermediary - method_5528- Lnet/minecraft/class_1282;method_5528()F- named - getExhaustion- Lnet/minecraft/entity/damage/DamageSource;getExhaustion()F
 
- 
isIndirectpublic boolean isIndirect()- Mappings:
- Namespace - Name - Mixin selector - official - b- Lben;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- Lben;c()Lbfj;- 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- Lben;d()Lbfj;- 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- Lben;a(Lbfz;)Lsw;- 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- Lben;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;
 
- 
isScaledWithDifficultypublic boolean isScaledWithDifficulty()- Mappings:
- Namespace - Name - Mixin selector - official - f- Lben;f()Z- intermediary - method_5514- Lnet/minecraft/class_1282;method_5514()Z- named - isScaledWithDifficulty- Lnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Z
 
- 
isSourceCreativePlayerpublic boolean isSourceCreativePlayer()- Mappings:
- Namespace - Name - Mixin selector - official - g- Lben;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- Lben;h()Leei;- 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- Lben;i()Leei;- 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- Lben;a(Lanl;)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- Lben;a(Lacp;)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- Lben;j()Lbep;- 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- Lben;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;
 
 
-