Class DamageTypes
java.lang.Object
johnsmith.enchantingoverhauled.api.damagesource.DamageTypes
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
FieldsModifier and TypeFieldDescriptionstatic 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 byMagicMissileEntityprojectiles fired by flying arcane book entities. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidTriggers static class initialization to ensure allResourceKeyconstants are created.
-
Field Details
-
ARCANE_RETRIBUTION
public static final net.minecraft.resources.ResourceKey<net.minecraft.world.damagesource.DamageType> ARCANE_RETRIBUTIONDamage 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_MISSILEDamage type dealt byMagicMissileEntityprojectiles 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 allResourceKeyconstants are created.
-