Package net.minecraft.entity.damage
Class DamageSource
java.lang.Object
net.minecraft.entity.damage.DamageSource
- Mappings:
Namespace Name named net/minecraft/entity/damage/DamageSourceintermediary net/minecraft/class_1282official cdt
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionDamageSource(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 Summary
Modifier and TypeMethodDescriptiongetDeathMessage(LivingEntity killed) floatgetName()getType()booleanisDirect()booleanisIn(TagKey<DamageType> tag) booleanisOf(RegistryKey<DamageType> typeKey) booleanbooleantoString()
-
Field Details
-
type
- Mappings:
Namespace Name Mixin selector named typeLnet/minecraft/entity/damage/DamageSource;type:Lnet/minecraft/registry/entry/RegistryEntry;intermediary field_42291Lnet/minecraft/class_1282;field_42291:Lnet/minecraft/class_6880;official aLcdt;a:Ljj;
-
attacker
- Mappings:
Namespace Name Mixin selector named attackerLnet/minecraft/entity/damage/DamageSource;attacker:Lnet/minecraft/entity/Entity;intermediary field_42292Lnet/minecraft/class_1282;field_42292:Lnet/minecraft/class_1297;official bLcdt;b:Lcfg;
-
source
- Mappings:
Namespace Name Mixin selector named sourceLnet/minecraft/entity/damage/DamageSource;source:Lnet/minecraft/entity/Entity;intermediary field_42293Lnet/minecraft/class_1282;field_42293:Lnet/minecraft/class_1297;official cLcdt;c:Lcfg;
-
position
- Mappings:
Namespace Name Mixin selector named positionLnet/minecraft/entity/damage/DamageSource;position:Lnet/minecraft/util/math/Vec3d;intermediary field_42294Lnet/minecraft/class_1282;field_42294:Lnet/minecraft/class_243;official dLcdt;d:Lfqj;
-
-
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 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;)Vintermediary <init>Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;Lnet/minecraft/class_243;)Vofficial <init>Lcdt;<init>(Ljj;Lcfg;Lcfg;Lfqj;)V
-
DamageSource
public DamageSource(RegistryEntry<DamageType> type, @Nullable @Nullable Entity source, @Nullable @Nullable Entity attacker) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/Entity;)Vintermediary <init>Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;Lnet/minecraft/class_1297;)Vofficial <init>Lcdt;<init>(Ljj;Lcfg;Lcfg;)V
-
DamageSource
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/util/math/Vec3d;)Vintermediary <init>Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_243;)Vofficial <init>Lcdt;<init>(Ljj;Lfqj;)V
-
DamageSource
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/Entity;)Vintermediary <init>Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;Lnet/minecraft/class_1297;)Vofficial <init>Lcdt;<init>(Ljj;Lcfg;)V
-
DamageSource
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/damage/DamageSource;<init>(Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary <init>Lnet/minecraft/class_1282;<init>(Lnet/minecraft/class_6880;)Vofficial <init>Lcdt;<init>(Ljj;)V
-
-
Method Details
-
toString
-
getExhaustion
public float getExhaustion()- Mappings:
Namespace Name Mixin selector named getExhaustionLnet/minecraft/entity/damage/DamageSource;getExhaustion()Fintermediary method_5528Lnet/minecraft/class_1282;method_5528()Fofficial aLcdt;a()F
-
isDirect
public boolean isDirect()- Mappings:
Namespace Name Mixin selector named isDirectLnet/minecraft/entity/damage/DamageSource;isDirect()Zintermediary method_60489Lnet/minecraft/class_1282;method_60489()Zofficial bLcdt;b()Z
-
getSource
- Mappings:
Namespace Name Mixin selector named getSourceLnet/minecraft/entity/damage/DamageSource;getSource()Lnet/minecraft/entity/Entity;intermediary method_5526Lnet/minecraft/class_1282;method_5526()Lnet/minecraft/class_1297;official cLcdt;c()Lcfg;
-
getAttacker
- Mappings:
Namespace Name Mixin selector named getAttackerLnet/minecraft/entity/damage/DamageSource;getAttacker()Lnet/minecraft/entity/Entity;intermediary method_5529Lnet/minecraft/class_1282;method_5529()Lnet/minecraft/class_1297;official dLcdt;d()Lcfg;
-
getWeaponStack
- Mappings:
Namespace Name Mixin selector named getWeaponStackLnet/minecraft/entity/damage/DamageSource;getWeaponStack()Lnet/minecraft/item/ItemStack;intermediary method_60948Lnet/minecraft/class_1282;method_60948()Lnet/minecraft/class_1799;official eLcdt;e()Ldji;
-
getDeathMessage
- Mappings:
Namespace Name Mixin selector named getDeathMessageLnet/minecraft/entity/damage/DamageSource;getDeathMessage(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/text/Text;intermediary method_5506Lnet/minecraft/class_1282;method_5506(Lnet/minecraft/class_1309;)Lnet/minecraft/class_2561;official aLcdt;a(Lcgh;)Lym;
-
getName
- Mappings:
Namespace Name Mixin selector named getNameLnet/minecraft/entity/damage/DamageSource;getName()Ljava/lang/String;intermediary method_5525Lnet/minecraft/class_1282;method_5525()Ljava/lang/String;official fLcdt;f()Ljava/lang/String;
-
isScaledWithDifficulty
public boolean isScaledWithDifficulty()- Mappings:
Namespace Name Mixin selector named isScaledWithDifficultyLnet/minecraft/entity/damage/DamageSource;isScaledWithDifficulty()Zintermediary method_5514Lnet/minecraft/class_1282;method_5514()Zofficial gLcdt;g()Z
-
isSourceCreativePlayer
public boolean isSourceCreativePlayer()- Mappings:
Namespace Name Mixin selector named isSourceCreativePlayerLnet/minecraft/entity/damage/DamageSource;isSourceCreativePlayer()Zintermediary method_5530Lnet/minecraft/class_1282;method_5530()Zofficial hLcdt;h()Z
-
getPosition
- Mappings:
Namespace Name Mixin selector named getPositionLnet/minecraft/entity/damage/DamageSource;getPosition()Lnet/minecraft/util/math/Vec3d;intermediary method_5510Lnet/minecraft/class_1282;method_5510()Lnet/minecraft/class_243;official iLcdt;i()Lfqj;
-
getStoredPosition
- Mappings:
Namespace Name Mixin selector named getStoredPositionLnet/minecraft/entity/damage/DamageSource;getStoredPosition()Lnet/minecraft/util/math/Vec3d;intermediary method_48791Lnet/minecraft/class_1282;method_48791()Lnet/minecraft/class_243;official jLcdt;j()Lfqj;
-
isIn
- Mappings:
Namespace Name Mixin selector named isInLnet/minecraft/entity/damage/DamageSource;isIn(Lnet/minecraft/registry/tag/TagKey;)Zintermediary method_48789Lnet/minecraft/class_1282;method_48789(Lnet/minecraft/class_6862;)Zofficial aLcdt;a(Lbek;)Z
-
isOf
- Mappings:
Namespace Name Mixin selector named isOfLnet/minecraft/entity/damage/DamageSource;isOf(Lnet/minecraft/registry/RegistryKey;)Zintermediary method_49708Lnet/minecraft/class_1282;method_49708(Lnet/minecraft/class_5321;)Zofficial aLcdt;a(Lamx;)Z
-
getType
- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/entity/damage/DamageSource;getType()Lnet/minecraft/entity/damage/DamageType;intermediary method_48792Lnet/minecraft/class_1282;method_48792()Lnet/minecraft/class_8110;official kLcdt;k()Lcdv;
-
getTypeRegistryEntry
- Mappings:
Namespace Name Mixin selector named getTypeRegistryEntryLnet/minecraft/entity/damage/DamageSource;getTypeRegistryEntry()Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_48793Lnet/minecraft/class_1282;method_48793()Lnet/minecraft/class_6880;official lLcdt;l()Ljj;
-