Class WSMLMBUtil

java.lang.Object
net.anawesomguy.wsmlmb.util.WSMLMBUtil

public final class WSMLMBUtil extends Object
This class contains some utility methods used in the library.
  • Method Details

    • toTranslatable

      public static net.minecraft.text.MutableText toTranslatable(String langKey)
      Creates a translatable text out of the given language key.

      This is used for support between different versions.

      Parameters:
      langKey - the language key to create a translatable text out of.
      Returns:
      a translatable text representing the given langKey.
    • addToGroup

      public static void addToGroup(Object itemGroup, net.minecraft.item.ItemConvertible... items)
    • addToGroup

      public static void addToGroup(Object itemGroup, net.minecraft.item.ItemStack... items)
    • getModifyEntriesEvent

      public static net.fabricmc.fabric.api.event.Event<?> getModifyEntriesEvent(Object itemGroup)
    • getItemGroup

      public static Object getItemGroup(String name)