类 RecipeUtils
java.lang.Object
committee.nova.mods.avaritia.api.util.recipe.RecipeUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidaddRecipe(net.minecraft.world.item.crafting.Recipe<?> recipe) static <I extends net.minecraft.world.Container,T extends net.minecraft.world.item.crafting.Recipe<I>>
Map<net.minecraft.resources.ResourceLocation,T> byType(net.minecraft.world.item.crafting.RecipeManager manager, net.minecraft.world.item.crafting.RecipeType<T> type) static <I extends net.minecraft.world.Container,T extends net.minecraft.world.item.crafting.Recipe<I>>
Map<net.minecraft.resources.ResourceLocation,T> byType(net.minecraft.world.item.crafting.RecipeType<T> type) static voidfireRecipeManagerLoadedEvent(net.minecraft.world.item.crafting.RecipeManager manager, net.minecraftforge.common.crafting.conditions.ICondition.IContext context, Map<net.minecraft.world.item.crafting.RecipeType<?>, Map<net.minecraft.resources.ResourceLocation, net.minecraft.world.item.crafting.Recipe<?>>> map, Map<net.minecraft.resources.ResourceLocation, net.minecraft.world.item.crafting.Recipe<?>> builder) static Collection<net.minecraft.world.item.crafting.Recipe<?>>static net.minecraft.world.item.crafting.RecipeManagerstatic voidremoveRecipe(net.minecraft.world.item.crafting.RecipeType<?> recipeType, net.minecraft.resources.ResourceLocation recipeId) static voidsetRecipeManager(net.minecraft.world.item.crafting.RecipeManager manager)
-
构造器详细资料
-
RecipeUtils
public RecipeUtils()
-
-
方法详细资料
-
getRecipeManager
public static net.minecraft.world.item.crafting.RecipeManager getRecipeManager() throws IllegalStateException -
setRecipeManager
@Internal public static void setRecipeManager(net.minecraft.world.item.crafting.RecipeManager manager) -
addRecipe
public static void addRecipe(net.minecraft.world.item.crafting.Recipe<?> recipe) -
removeRecipe
public static void removeRecipe(net.minecraft.world.item.crafting.RecipeType<?> recipeType, net.minecraft.resources.ResourceLocation recipeId) -
byType
public static <I extends net.minecraft.world.Container,T extends net.minecraft.world.item.crafting.Recipe<I>> Map<net.minecraft.resources.ResourceLocation,T> byType(net.minecraft.world.item.crafting.RecipeType<T> type) -
byType
public static <I extends net.minecraft.world.Container,T extends net.minecraft.world.item.crafting.Recipe<I>> Map<net.minecraft.resources.ResourceLocation,T> byType(net.minecraft.world.item.crafting.RecipeManager manager, net.minecraft.world.item.crafting.RecipeType<T> type) -
getAllRecipes
-
fireRecipeManagerLoadedEvent
public static void fireRecipeManagerLoadedEvent(net.minecraft.world.item.crafting.RecipeManager manager, net.minecraftforge.common.crafting.conditions.ICondition.IContext context, Map<net.minecraft.world.item.crafting.RecipeType<?>, Map<net.minecraft.resources.ResourceLocation, net.minecraft.world.item.crafting.Recipe<?>>> map, Map<net.minecraft.resources.ResourceLocation, net.minecraft.world.item.crafting.Recipe<?>> builder)
-