net.minecraft.screen

public class StonecutterScreenHandler

extends ScreenHandler

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

Field summary

Modifier and TypeField
public static final int
INPUT_SLOT
field_30842
INPUT_ID
public static final int
RESULT_SLOT
field_30843
OUTPUT_ID
private static final int
INV_SLOT_START
field_30844
INVENTORY_START
private static final int
INV_SLOT_END
field_30845
INVENTORY_END
private static final int
USE_ROW_SLOT_START
field_30846
OUTPUT_START
private static final int
USE_ROW_SLOT_END
field_30847
OUTPUT_END
private final ScreenHandlerContext
access
field_17630
context
private final Property
selectedRecipeIndex
field_17631
selectedRecipe
private final World
level
field_17632
world
private CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
recipesForInput
field_54600
availableRecipes
private ItemStack
input
field_17634
inputStack
private long
lastSoundTime
field_17635
lastTakeTime
final Slot
inputSlot
field_17627
inputSlot
final Slot
resultSlot
field_17628
outputSlot
private Runnable
slotUpdateListener
field_17636
contentsChangedListener
public final Inventory
container
field_17629
input
private final CraftingResultInventory
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()
method_17862()
getSelectedRecipe()
public CuttingRecipeDisplay$Grouping<StonecuttingRecipe>
getVisibleRecipes()
method_17863()
getAvailableRecipes()
public int
getNumberOfVisibleRecipes()
method_17864()
getAvailableRecipeCount()
public boolean
hasInputItem()
method_17865()
canCraft()
public boolean
stillValid(Player player)
method_7597(class_1657 arg0)
canUse(PlayerEntity arg0)
public boolean
clickMenuButton(Player player, int buttonId)
method_7604(class_1657 arg0, int arg1)
onButtonClick(PlayerEntity arg0, int arg1)
private boolean
isValidRecipeIndex(int buttonId)
method_30160(int arg0)
isInBounds(int id)
public void
slotsChanged(Container container)
method_7609(class_1263 arg0)
onContentChanged(Inventory arg0)
private void
setupRecipeList(ItemStack item)
method_17855(class_1799 arg0)
updateInput(ItemStack stack)
private void
setupResultSlot(int index)
method_17866(int arg0)
populateResult(int selectedId)
public ScreenHandlerType<?>
getType()
method_17358()
getType()
public void
registerUpdateListener(Runnable slotUpdateListener)
method_17859(Runnable arg0)
setContentsChangedListener(Runnable contentsChangedListener)
public boolean
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)
method_7601(class_1657 arg0, int arg1)
quickMove(PlayerEntity arg0, int arg1)
public void
removed(Player player)
method_7595(class_1657 arg0)
onClosed(PlayerEntity arg0)
private void
lambda$removed$3(Player arg0, Level arg1, BlockPos arg2)
method_17856(class_1657 arg0, class_1937 arg1, class_2338 arg2)
method_17856(PlayerEntity arg0, World world, BlockPos pos)
private void
lambda$setupResultSlot$2()
method_64656()
method_64656()
private void
lambda$setupResultSlot$1(RecipeHolder arg0)
method_64655(class_8786 arg0)
method_64655(RecipeEntry recipe)
private static void
lambda$new$0()
method_17867()
method_17867()