Class StonecutterContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.StonecutterContainer
-
public class StonecutterContainer extends Container
-
-
Field Summary
Fields Modifier and Type Field Description private IWorldPosCallable
access
IInventory
container
private ItemStack
input
(package private) Slot
inputSlot
private long
lastSoundTime
private World
level
private java.util.List<StonecuttingRecipe>
recipes
private CraftResultInventory
resultContainer
(package private) Slot
resultSlot
private IntReferenceHolder
selectedRecipeIndex
private java.lang.Runnable
slotUpdateListener
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description StonecutterContainer(int p_i50059_1_, PlayerInventory p_i50059_2_)
StonecutterContainer(int p_i50060_1_, PlayerInventory p_i50060_2_, IWorldPosCallable p_i50060_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
boolean
clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
int
getNumRecipes()
java.util.List<StonecuttingRecipe>
getRecipes()
int
getSelectedRecipeIndex()
ContainerType<?>
getType()
boolean
hasInputItem()
private boolean
isValidRecipeIndex(int p_241818_1_)
ItemStack
quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
void
registerUpdateListener(java.lang.Runnable p_217071_1_)
void
removed(PlayerEntity p_75134_1_)
private void
setupRecipeList(IInventory p_217074_1_, ItemStack p_217074_2_)
private void
setupResultSlot()
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 Detail
-
access
private final IWorldPosCallable access
-
selectedRecipeIndex
private final IntReferenceHolder selectedRecipeIndex
-
level
private final World level
-
recipes
private java.util.List<StonecuttingRecipe> recipes
-
input
private ItemStack input
-
lastSoundTime
private long lastSoundTime
-
inputSlot
final Slot inputSlot
-
resultSlot
final Slot resultSlot
-
slotUpdateListener
private java.lang.Runnable slotUpdateListener
-
container
public final IInventory container
-
resultContainer
private final CraftResultInventory resultContainer
-
-
Constructor Detail
-
StonecutterContainer
public StonecutterContainer(int p_i50059_1_, PlayerInventory p_i50059_2_)
-
StonecutterContainer
public StonecutterContainer(int p_i50060_1_, PlayerInventory p_i50060_2_, IWorldPosCallable p_i50060_3_)
-
-
Method Detail
-
getSelectedRecipeIndex
public int getSelectedRecipeIndex()
-
getRecipes
public java.util.List<StonecuttingRecipe> getRecipes()
-
getNumRecipes
public int getNumRecipes()
-
hasInputItem
public boolean hasInputItem()
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
clickMenuButton
public boolean clickMenuButton(PlayerEntity p_75140_1_, int p_75140_2_)
- Overrides:
clickMenuButton
in classContainer
-
isValidRecipeIndex
private boolean isValidRecipeIndex(int p_241818_1_)
-
slotsChanged
public void slotsChanged(IInventory p_75130_1_)
- Overrides:
slotsChanged
in classContainer
-
setupRecipeList
private void setupRecipeList(IInventory p_217074_1_, ItemStack p_217074_2_)
-
setupResultSlot
private void setupResultSlot()
-
getType
public ContainerType<?> getType()
-
registerUpdateListener
public void registerUpdateListener(java.lang.Runnable p_217071_1_)
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
- Overrides:
canTakeItemForPickAll
in classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
removed
public void removed(PlayerEntity p_75134_1_)
-
-