Class CommonLoader

java.lang.Object
de.cech12.usefulhats.CommonLoader

public class CommonLoader extends Object
A static class for all loaders which initializes everything which is used by all loaders.
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    getEnchantmentLevel(net.minecraft.world.item.ItemStack stack, net.minecraft.resources.ResourceKey<net.minecraft.world.item.enchantment.Enchantment> enchantment)
     
    static void
    Initialize method that should be called by every loader mod in the constructor.

    Methods inherited from class Object

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

    • init

      public static void init()
      Initialize method that should be called by every loader mod in the constructor.
    • getEnchantmentLevel

      public static int getEnchantmentLevel(net.minecraft.world.item.ItemStack stack, net.minecraft.resources.ResourceKey<net.minecraft.world.item.enchantment.Enchantment> enchantment)