Class DamageTypes

java.lang.Object
johnsmith.enchantmentcore.api.tag.DamageTypes

public final class DamageTypes extends Object
Defines standard DamageType tag keys provided by Enchantment Core for categorizing physical and magical damage sources in enchantment predicates.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.tags.TagKey<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<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 Type
    Method
    Description
    static void
    Triggers static initialization of the damage type tags.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • IS_PHYSICAL_DAMAGE

      public static final net.minecraft.tags.TagKey<net.minecraft.world.damagesource.DamageType> IS_PHYSICAL_DAMAGE
      Tag 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<net.minecraft.world.damagesource.DamageType> IS_MAGIC_DAMAGE
      Tag 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.