Class StonecutterContainer
java.lang.Object
net.minecraft.inventory.container.Container
net.minecraft.inventory.container.StonecutterContainer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final IWorldPosCallable
final IInventory
private ItemStack
(package private) final Slot
private long
private final World
private List<StonecuttingRecipe>
private final CraftResultInventory
(package private) final Slot
private final IntReferenceHolder
private Runnable
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
Constructor Summary
ConstructorDescriptionStonecutterContainer
(int p_i50059_1_, PlayerInventory p_i50059_2_) StonecutterContainer
(int p_i50060_1_, PlayerInventory p_i50060_2_, IWorldPosCallable p_i50060_3_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canTakeItemForPickAll
(ItemStack p_94530_1_, Slot p_94530_2_) boolean
clickMenuButton
(PlayerEntity p_75140_1_, int p_75140_2_) int
int
getType()
boolean
private boolean
isValidRecipeIndex
(int p_241818_1_) quickMoveStack
(PlayerEntity p_82846_1_, int p_82846_2_) void
registerUpdateListener
(Runnable p_217071_1_) void
removed
(PlayerEntity p_75134_1_) private void
setupRecipeList
(IInventory p_217074_1_, ItemStack p_217074_2_) private void
void
slotsChanged
(IInventory p_75130_1_) boolean
stillValid
(PlayerEntity p_75145_1_) Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, stillValid
-
Field Details
-
access
-
selectedRecipeIndex
-
level
-
recipes
-
input
-
lastSoundTime
private long lastSoundTime -
inputSlot
-
resultSlot
-
slotUpdateListener
-
container
-
resultContainer
-
-
Constructor Details
-
StonecutterContainer
-
StonecutterContainer
public StonecutterContainer(int p_i50060_1_, PlayerInventory p_i50060_2_, IWorldPosCallable p_i50060_3_)
-
-
Method Details
-
getSelectedRecipeIndex
public int getSelectedRecipeIndex() -
getRecipes
-
getNumRecipes
public int getNumRecipes() -
hasInputItem
public boolean hasInputItem() -
stillValid
- Specified by:
stillValid
in classContainer
-
clickMenuButton
- Overrides:
clickMenuButton
in classContainer
-
isValidRecipeIndex
private boolean isValidRecipeIndex(int p_241818_1_) -
slotsChanged
- Overrides:
slotsChanged
in classContainer
-
setupRecipeList
-
setupResultSlot
private void setupResultSlot() -
getType
-
registerUpdateListener
-
canTakeItemForPickAll
- Overrides:
canTakeItemForPickAll
in classContainer
-
quickMoveStack
- Overrides:
quickMoveStack
in classContainer
-
removed
-