net.minecraft.screen

public class StonecutterScreenHandler

extends ScreenHandler

net.minecraft.world.inventory.StonecutterMenu
net.minecraft.world.inventory.StonecutterMenu
net.minecraft.class_3971
net.minecraft.screen.StonecutterScreenHandler

Field summary

Modifier and TypeField
public static final int
INPUT_SLOT
INPUT_SLOT
field_30842
INPUT_ID
public static final int
RESULT_SLOT
RESULT_SLOT
field_30843
OUTPUT_ID
private static final int
INV_SLOT_START
INV_SLOT_START
field_30844
INVENTORY_START
private static final int
INV_SLOT_END
INV_SLOT_END
field_30845
INVENTORY_END
private static final int
USE_ROW_SLOT_START
USE_ROW_SLOT_START
field_30846
OUTPUT_START
private static final int
USE_ROW_SLOT_END
USE_ROW_SLOT_END
field_30847
OUTPUT_END
private final ScreenHandlerContext
access
access
field_17630
context
private final Property
selectedRecipeIndex
selectedRecipeIndex
field_17631
selectedRecipe
private final World
level
level
field_17632
world
private CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
recipesForInput
recipesForInput
field_54600
availableRecipes
private ItemStack
input
input
field_17634
inputStack
private long
lastSoundTime
lastSoundTime
field_17635
lastTakeTime
private final Slot
inputSlot
inputSlot
field_17627
inputSlot
private final Slot
resultSlot
resultSlot
field_17628
outputSlot
private Runnable
slotUpdateListener
slotUpdateListener
field_17636
contentsChangedListener
public final Inventory
container
container
field_17629
input
private final CraftingResultInventory
resultContainer
resultContainer
field_19173
output

Constructor summary

ModifierConstructor
public (int syncId, PlayerInventory playerInventory)
public (int syncId, PlayerInventory playerInventory, ScreenHandlerContext context)

Method summary

Modifier and TypeMethod
public int
getSelectedRecipeIndex()
getSelectedRecipeIndex()
method_17862()
getSelectedRecipe()
public CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
getVisibleRecipes()
getVisibleRecipes()
method_17863()
getAvailableRecipes()
public int
getNumberOfVisibleRecipes()
getNumberOfVisibleRecipes()
method_17864()
getAvailableRecipeCount()
public boolean
hasInputItem()
hasInputItem()
method_17865()
canCraft()
public boolean
stillValid(Player player)
stillValid(Player player)
method_7597(class_1657 arg0)
canUse(PlayerEntity arg0)
public boolean
clickMenuButton(Player player, int buttonId)
clickMenuButton(Player player, int buttonId)
method_7604(class_1657 arg0, int arg1)
onButtonClick(PlayerEntity arg0, int arg1)
private boolean
isValidRecipeIndex(int buttonId)
isValidRecipeIndex(int buttonId)
method_30160(int arg0)
isInBounds(int id)
public void
slotsChanged(Container container)
slotsChanged(Container container)
method_7609(class_1263 arg0)
onContentChanged(Inventory arg0)
private void
setupRecipeList(ItemStack item)
setupRecipeList(ItemStack item)
method_17855(class_1799 arg0)
updateInput(ItemStack stack)
private void
setupResultSlot(int index)
setupResultSlot(int index)
method_17866(int arg0)
populateResult(int selectedId)
public ScreenHandlerType<?>
getType()
getType()
method_17358()
getType()
public void
registerUpdateListener(Runnable slotUpdateListener)
registerUpdateListener(Runnable slotUpdateListener)
method_17859(Runnable arg0)
setContentsChangedListener(Runnable contentsChangedListener)
public boolean
canTakeItemForPickAll(ItemStack carried, Slot target)
canTakeItemForPickAll(ItemStack carried, Slot target)
method_7613(class_1799 arg0, class_1735 arg1)
canInsertIntoSlot(ItemStack arg0, Slot arg1)
public ItemStack
quickMoveStack(Player player, int slotIndex)
quickMoveStack(Player player, int slotIndex)
method_7601(class_1657 arg0, int arg1)
quickMove(PlayerEntity arg0, int arg1)
public void
removed(Player player)
removed(Player player)
method_7595(class_1657 arg0)
onClosed(PlayerEntity arg0)