Class CraftingPocketCrafter
java.lang.Object
petrolpark.mc.library.core.world.item.crafting.pocket.crafter.CraftingPocketCrafter
- All Implemented Interfaces:
IPocketCrafter<net.minecraft.world.item.crafting.CraftingRecipe>
@ParametersAreNonnullByDefault
public class CraftingPocketCrafter
extends Object
implements IPocketCrafter<net.minecraft.world.item.crafting.CraftingRecipe>
-
Field Summary
FieldsFields inherited from interface petrolpark.mc.library.core.world.item.crafting.pocket.crafter.IPocketCrafter
STREAM_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanCastRecipe(net.minecraft.world.item.crafting.Recipe<?> recipe) craft(IPocketCraftingContext context, boolean simulate, net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.CraftingRecipe> recipeHolder, List<IInterpretedSlot<?>> inputSlots, net.minecraft.world.inventory.Slot outputSlot) net.minecraft.world.item.crafting.CraftingInputgetCraftingInput(List<IInterpretedSlot<?>> interpretedSlots, net.minecraft.world.inventory.AbstractContainerMenu menu, PocketCrafting.SlotArrangement slotArrangement) net.minecraft.world.item.ItemStacknet.minecraft.network.chat.MutableComponentgetName()List<net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.CraftingRecipe>> getRecipes(IPocketCraftingContext.Client context, List<IInterpretedSlot<?>> interpretedSlots, PocketCrafting.SlotArrangement slotArrangement) Methods 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
getRecipeLength, getSlotInterpretations, sendPacket
-
Field Details
-
TRANSLATION_KEY
-
-
Constructor Details
-
CraftingPocketCrafter
public CraftingPocketCrafter()
-
-
Method Details
-
getName
public net.minecraft.network.chat.MutableComponent getName()- Specified by:
getNamein interfaceIPocketCrafter<net.minecraft.world.item.crafting.CraftingRecipe>
-
getDefaultToolStack
public net.minecraft.world.item.ItemStack getDefaultToolStack()- Specified by:
getDefaultToolStackin interfaceIPocketCrafter<net.minecraft.world.item.crafting.CraftingRecipe>
-
canCastRecipe
public boolean canCastRecipe(net.minecraft.world.item.crafting.Recipe<?> recipe) - Specified by:
canCastRecipein interfaceIPocketCrafter<net.minecraft.world.item.crafting.CraftingRecipe>
-
getRecipes
public List<net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.CraftingRecipe>> getRecipes(IPocketCraftingContext.Client context, List<IInterpretedSlot<?>> interpretedSlots, PocketCrafting.SlotArrangement slotArrangement) - Specified by:
getRecipesin interfaceIPocketCrafter<net.minecraft.world.item.crafting.CraftingRecipe>
-
craft
public PocketCrafting.Result craft(IPocketCraftingContext context, boolean simulate, net.minecraft.world.item.crafting.RecipeHolder<? extends net.minecraft.world.item.crafting.CraftingRecipe> recipeHolder, List<IInterpretedSlot<?>> inputSlots, @Nullable net.minecraft.world.inventory.Slot outputSlot) - Specified by:
craftin interfaceIPocketCrafter<net.minecraft.world.item.crafting.CraftingRecipe>
-
getCraftingInput
public net.minecraft.world.item.crafting.CraftingInput getCraftingInput(List<IInterpretedSlot<?>> interpretedSlots, net.minecraft.world.inventory.AbstractContainerMenu menu, PocketCrafting.SlotArrangement slotArrangement)
-