Class CustomEnchantments
java.lang.Object
com.bleudev.nine_lifes.custom.CustomEnchantments
Class which provides custom
enchantments added in Nine lifes mod(
nine_lifes:charge
)-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass which provides functions and methods to get enchantmentregistry entrieswith providedDynamicRegistryManager -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment> RegistryKeyofnine_lifes:chargeenchantment -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull net.minecraft.registry.entry.RegistryEntry<net.minecraft.enchantment.Enchantment> getEntry(net.minecraft.registry.DynamicRegistryManager manager, net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment> key) Deprecated.static void[DANGER] Do not use in mods depends on Nine Lifes!
-
Field Details
-
CHARGE
public static final net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment> CHARGERegistryKeyofnine_lifes:chargeenchantment
-
-
Method Details
-
getEntry
@Contract("_, _ -> new") @Deprecated(since="1.9") @NotNull public static @NotNull net.minecraft.registry.entry.RegistryEntry<net.minecraft.enchantment.Enchantment> getEntry(net.minecraft.registry.DynamicRegistryManager manager, net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment> key) Deprecated.Deprecated since 1.9 version and will be deleted in 1.10. UseCustomEnchantments.Entriesfunctions or methods instead// Replace this line CustomEnchantments.getEntry(world.getRegistryManager(), CustomEnchantments.CHARGE) // With CustomEnchantments.Entries.create(world.getRegistryManager()).charge() -
initialize
public static void initialize()[DANGER] Do not use in mods depends on Nine Lifes!
-