Class AbstractCookingPocketCrafter<R extends net.minecraft.world.item.crafting.AbstractCookingRecipe>
java.lang.Object
petrolpark.mc.library.core.world.item.crafting.pocket.crafter.SimplePocketCrafter<net.minecraft.world.item.crafting.SingleRecipeInput,R>
petrolpark.mc.library.core.world.item.crafting.pocket.crafter.SingleInputPocketCrafter<R>
petrolpark.mc.library.core.world.item.crafting.pocket.crafter.AbstractCookingPocketCrafter<R>
- All Implemented Interfaces:
IPocketCrafter<R>
- Direct Known Subclasses:
CookingPocketCrafter
@ParametersAreNonnullByDefault
public abstract class AbstractCookingPocketCrafter<R extends net.minecraft.world.item.crafting.AbstractCookingRecipe>
extends SingleInputPocketCrafter<R>
-
Field Summary
Fields inherited from interface petrolpark.mc.library.core.world.item.crafting.pocket.crafter.IPocketCrafter
STREAM_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncraft(IPocketCraftingContext context, boolean simulate, net.minecraft.world.item.crafting.RecipeHolder<? extends R> recipe, List<IInterpretedSlot<?>> slots, net.minecraft.world.inventory.Slot outputSlot) intgetRecipeLength(IPocketCraftingContext context, net.minecraft.world.item.crafting.RecipeHolder<? extends R> recipe) getRecipes(IPocketCraftingContext.Client context, List<IInterpretedSlot<?>> slots, PocketCrafting.SlotArrangement slotArrangement) Methods inherited from class petrolpark.mc.library.core.world.item.crafting.pocket.crafter.SingleInputPocketCrafter
createRecipeInputMethods inherited from class petrolpark.mc.library.core.world.item.crafting.pocket.crafter.SimplePocketCrafter
canCastRecipe, getResult, streamRecipesFor, streamRecipeTypesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface petrolpark.mc.library.core.world.item.crafting.pocket.crafter.IPocketCrafter
getDefaultToolStack, getName, getSlotInterpretations, sendPacket
-
Constructor Details
-
AbstractCookingPocketCrafter
public AbstractCookingPocketCrafter()
-
-
Method Details
-
getRecipes
public List<net.minecraft.world.item.crafting.RecipeHolder<? extends R>> getRecipes(IPocketCraftingContext.Client context, List<IInterpretedSlot<?>> slots, PocketCrafting.SlotArrangement slotArrangement) - Specified by:
getRecipesin interfaceIPocketCrafter<R extends net.minecraft.world.item.crafting.AbstractCookingRecipe>- Overrides:
getRecipesin classSimplePocketCrafter<net.minecraft.world.item.crafting.SingleRecipeInput,R extends net.minecraft.world.item.crafting.AbstractCookingRecipe>
-
getRecipeLength
public int getRecipeLength(IPocketCraftingContext context, net.minecraft.world.item.crafting.RecipeHolder<? extends R> recipe) -
craft
public PocketCrafting.Result craft(IPocketCraftingContext context, boolean simulate, net.minecraft.world.item.crafting.RecipeHolder<? extends R> recipe, List<IInterpretedSlot<?>> slots, @Nullable net.minecraft.world.inventory.Slot outputSlot) - Specified by:
craftin interfaceIPocketCrafter<R extends net.minecraft.world.item.crafting.AbstractCookingRecipe>- Overrides:
craftin classSimplePocketCrafter<net.minecraft.world.item.crafting.SingleRecipeInput,R extends net.minecraft.world.item.crafting.AbstractCookingRecipe>
-