Class LoaderHelper
java.lang.Object
com.stereowalker.unionlib.util.LoaderHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPoolToLootTable(net.minecraft.world.level.storage.loot.LootTable table, net.minecraft.world.level.storage.loot.LootPool pool) static booleancanEquip(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot) static Pathstatic net.minecraft.world.item.ItemStackcraftRemainder(net.minecraft.world.item.ItemStack stack) static net.minecraft.world.item.crafting.IngredientcreateStackIngredient(net.minecraft.world.item.ItemStack stack) static booleanhasCraftRemainder(net.minecraft.world.item.ItemStack stack) static booleanstatic booleanstatic booleanisModLoaded(String modid) static boolean
-
Constructor Details
-
LoaderHelper
public LoaderHelper()
-
-
Method Details
-
isModLoaded
-
configPath
-
isClientInstance
public static boolean isClientInstance() -
isServerInstance
public static boolean isServerInstance() -
isDevEnvironment
public static boolean isDevEnvironment() -
craftRemainder
public static net.minecraft.world.item.ItemStack craftRemainder(net.minecraft.world.item.ItemStack stack) -
hasCraftRemainder
public static boolean hasCraftRemainder(net.minecraft.world.item.ItemStack stack) -
canEquip
public static boolean canEquip(net.minecraft.world.entity.LivingEntity entity, net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.EquipmentSlot slot) -
addPoolToLootTable
public static void addPoolToLootTable(net.minecraft.world.level.storage.loot.LootTable table, net.minecraft.world.level.storage.loot.LootPool pool) -
createStackIngredient
public static net.minecraft.world.item.crafting.Ingredient createStackIngredient(net.minecraft.world.item.ItemStack stack)
-