Interface CraftingGrid
- All Superinterfaces:
Grid, PreviewProvider
- All Known Implementing Classes:
CraftingGridBlockEntity
-
Method Summary
Modifier and TypeMethodDescriptionvoidacceptQuickCraft(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack) booleanclearMatrix(net.minecraft.world.entity.player.Player player, boolean toPlayerInventory) net.minecraft.world.inventory.ResultContainernet.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.CraftingInput input) startExtractTransaction(net.minecraft.world.entity.player.Player player, boolean directCommit) voidtransferRecipe(net.minecraft.world.entity.player.Player player, List<List<ItemResource>> recipe) Methods inherited from interface Grid
addWatcher, canMenuStayOpen, createOperations, getAutocraftableResources, getAutocraftingTaskStatuses, getCurrentlyAutocrafting, getItemStorage, getResources, isGridActive, removeWatcherMethods inherited from interface PreviewProvider
getMaxAmount, getPreview, getTreePreview, startTask
-
Method Details
-
getCraftingMatrix
RecipeMatrixContainer getCraftingMatrix() -
getCraftingResult
net.minecraft.world.inventory.ResultContainer getCraftingResult() -
getRemainingItems
net.minecraft.core.NonNullList<net.minecraft.world.item.ItemStack> getRemainingItems(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.crafting.CraftingInput input) -
startExtractTransaction
ExtractTransaction startExtractTransaction(net.minecraft.world.entity.player.Player player, boolean directCommit) -
clearMatrix
boolean clearMatrix(net.minecraft.world.entity.player.Player player, boolean toPlayerInventory) -
transferRecipe
void transferRecipe(net.minecraft.world.entity.player.Player player, List<List<ItemResource>> recipe) -
acceptQuickCraft
void acceptQuickCraft(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack craftedStack)
-