Class CustomEnchantments

java.lang.Object
com.bleudev.nine_lifes.custom.CustomEnchantments

public class CustomEnchantments extends Object
Class which provides custom enchantments added in Nine lifes mod( nine_lifes:charge )
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Class which provides functions and methods to get enchantment registry entries with provided DynamicRegistryManager
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment>
    RegistryKey of nine_lifes:charge enchantment
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    static void
    [DANGER] Do not use in mods depends on Nine Lifes!

    Methods inherited from class java.lang.Object

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

    • CHARGE

      public static final net.minecraft.registry.RegistryKey<net.minecraft.enchantment.Enchantment> CHARGE
      RegistryKey of nine_lifes:charge enchantment
  • 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. Use CustomEnchantments.Entries functions 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!