java.lang.Object
johnsmith.enchantingoverhauled.api.damagesource.DamageTypes

public class DamageTypes extends Object
Registry key holder for custom DamageTypes introduced by Enchanting Overhauled.

This class holds the static ResourceKey references used to resolve damage types from the dynamic Registries.DAMAGE_TYPE registry when constructing a DamageSource.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType>
    Damage type dealt when a player triggers an explosion by using an invalid book catalyst on a Deactivated Enchanting Altar or by failing a lethal game of Scribe.
    static final net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType>
    Damage type dealt by MagicMissileEntity projectiles fired by flying arcane book entities.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Triggers static class initialization to ensure all ResourceKey constants are created.

    Methods inherited from class java.lang.Object

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

    • ARCANE_RETRIBUTION

      public static final net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType> ARCANE_RETRIBUTION
      Damage type dealt when a player triggers an explosion by using an invalid book catalyst on a Deactivated Enchanting Altar or by failing a lethal game of Scribe.

      Corresponds to enchanting_overhauled:arcane_retribution.

    • MAGIC_MISSILE

      public static final net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType> MAGIC_MISSILE
      Damage type dealt by MagicMissileEntity projectiles fired by flying arcane book entities.

      Corresponds to enchanting_overhauled:magic_missile.

  • Constructor Details

    • DamageTypes

      public DamageTypes()
  • Method Details

    • initialize

      public static void initialize()
      Triggers static class initialization to ensure all ResourceKey constants are created.