Package net.anawesomguy.wsmlmb.util
Class WSMLMBUtil
java.lang.Object
net.anawesomguy.wsmlmb.util.WSMLMBUtil
This class contains some utility methods used in the library.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToGroup(Object itemGroup, net.minecraft.item.ItemConvertible... items) static voidaddToGroup(Object itemGroup, net.minecraft.item.ItemStack... items) static ObjectgetItemGroup(String name) static net.fabricmc.fabric.api.event.Event<?>getModifyEntriesEvent(Object itemGroup) static net.minecraft.text.MutableTexttoTranslatable(String langKey) Creates a translatable text out of the given language key.
-
Method Details
-
toTranslatable
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
-
addToGroup
-
getModifyEntriesEvent
-
getItemGroup
-