Class DamageTypes
java.lang.Object
johnsmith.enchantmentcore.api.tag.DamageTypes
Defines standard
DamageType tag keys provided by Enchantment Core for categorizing
physical and magical damage sources in enchantment predicates.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.tags.TagKey<@NotNull net.minecraft.world.damagesource.DamageType> Tag key (#enchantment_core:is_magic_damage) identifying magical damage sources (such as direct magic, indirect magic, thorns, and sonic boom).static final net.minecraft.tags.TagKey<@NotNull net.minecraft.world.damagesource.DamageType> Tag key (#enchantment_core:is_physical_damage) identifying physical kinetic damage sources (such as melee attacks, explosions, falling blocks, and kinetic wall impacts). -
Method Summary
Modifier and TypeMethodDescriptionstatic voidTriggers static initialization of the damage type tags.
-
Field Details
-
IS_PHYSICAL_DAMAGE
public static final net.minecraft.tags.TagKey<@NotNull net.minecraft.world.damagesource.DamageType> IS_PHYSICAL_DAMAGETag key (#enchantment_core:is_physical_damage) identifying physical kinetic damage sources (such as melee attacks, explosions, falling blocks, and kinetic wall impacts). -
IS_MAGIC_DAMAGE
public static final net.minecraft.tags.TagKey<@NotNull net.minecraft.world.damagesource.DamageType> IS_MAGIC_DAMAGETag key (#enchantment_core:is_magic_damage) identifying magical damage sources (such as direct magic, indirect magic, thorns, and sonic boom).
-
-
Method Details
-
initialize
public static void initialize()Triggers static initialization of the damage type tags.
-