Class Recipes1_11_2
java.lang.Object
com.viaversion.viafabricplus.features.recipe.Recipes1_11_2
Recipe data dump for all versions below 1.12.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RecipeManager1_11_2getRecipeManager(net.minecraft.core.RegistryAccess.Frozen registryAccess) static voidinit()static voidreset()static voidsetCraftingResultSlot(int syncId, net.minecraft.world.inventory.AbstractContainerMenu screenHandler, net.minecraft.world.inventory.CraftingContainer inventory) Sets the result slot of a crafting screen handler to the correct item stack.
-
Constructor Details
-
Recipes1_11_2
public Recipes1_11_2()
-
-
Method Details
-
init
public static void init() -
getRecipeManager
public static RecipeManager1_11_2 getRecipeManager(net.minecraft.core.RegistryAccess.Frozen registryAccess) -
reset
public static void reset() -
setCraftingResultSlot
public static void setCraftingResultSlot(int syncId, net.minecraft.world.inventory.AbstractContainerMenu screenHandler, net.minecraft.world.inventory.CraftingContainer inventory) Sets the result slot of a crafting screen handler to the correct item stack. In Minecraft versions up to 1.11.2 the result slot is not updated when the input slots change, so we need to update it manually, Spigot and Paper re-syncs the slot, so we don't notice this bug on servers that use Spigot or Paper- Parameters:
syncId- The sync id of the screen handlerscreenHandler- The screen handlerinventory- The inventory of the screen handler
-