Class WorkbenchContainer
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.RecipeBookContainer<CraftingInventory>
-
- net.minecraft.inventory.container.WorkbenchContainer
-
public class WorkbenchContainer extends RecipeBookContainer<CraftingInventory>
-
-
Field Summary
Fields Modifier and Type Field Description private IWorldPosCallable
access
private CraftingInventory
craftSlots
private PlayerEntity
player
private CraftResultInventory
resultSlots
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description WorkbenchContainer(int p_i50089_1_, PlayerInventory p_i50089_2_)
WorkbenchContainer(int p_i50090_1_, PlayerInventory p_i50090_2_, IWorldPosCallable p_i50090_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
void
clearCraftingContent()
void
fillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)
int
getGridHeight()
int
getGridWidth()
RecipeBookCategory
getRecipeBookType()
int
getResultSlotIndex()
int
getSize()
ItemStack
quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
boolean
recipeMatches(IRecipe<? super CraftingInventory> p_201769_1_)
void
removed(PlayerEntity p_75134_1_)
protected static void
slotChangedCraftingGrid(int p_217066_0_, World p_217066_1_, PlayerEntity p_217066_2_, CraftingInventory p_217066_3_, CraftResultInventory p_217066_4_)
void
slotsChanged(IInventory p_75130_1_)
boolean
stillValid(PlayerEntity p_75145_1_)
-
Methods inherited from class net.minecraft.inventory.container.RecipeBookContainer
getRecipeBookCategories, handlePlacement
-
Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, stillValid
-
-
-
-
Field Detail
-
craftSlots
private final CraftingInventory craftSlots
-
resultSlots
private final CraftResultInventory resultSlots
-
access
private final IWorldPosCallable access
-
player
private final PlayerEntity player
-
-
Constructor Detail
-
WorkbenchContainer
public WorkbenchContainer(int p_i50089_1_, PlayerInventory p_i50089_2_)
-
WorkbenchContainer
public WorkbenchContainer(int p_i50090_1_, PlayerInventory p_i50090_2_, IWorldPosCallable p_i50090_3_)
-
-
Method Detail
-
slotChangedCraftingGrid
protected static void slotChangedCraftingGrid(int p_217066_0_, World p_217066_1_, PlayerEntity p_217066_2_, CraftingInventory p_217066_3_, CraftResultInventory p_217066_4_)
-
slotsChanged
public void slotsChanged(IInventory p_75130_1_)
- Overrides:
slotsChanged
in classContainer
-
fillCraftSlotsStackedContents
public void fillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)
- Specified by:
fillCraftSlotsStackedContents
in classRecipeBookContainer<CraftingInventory>
-
clearCraftingContent
public void clearCraftingContent()
- Specified by:
clearCraftingContent
in classRecipeBookContainer<CraftingInventory>
-
recipeMatches
public boolean recipeMatches(IRecipe<? super CraftingInventory> p_201769_1_)
- Specified by:
recipeMatches
in classRecipeBookContainer<CraftingInventory>
-
removed
public void removed(PlayerEntity p_75134_1_)
-
stillValid
public boolean stillValid(PlayerEntity p_75145_1_)
- Specified by:
stillValid
in classContainer
-
quickMoveStack
public ItemStack quickMoveStack(PlayerEntity p_82846_1_, int p_82846_2_)
- Overrides:
quickMoveStack
in classContainer
-
canTakeItemForPickAll
public boolean canTakeItemForPickAll(ItemStack p_94530_1_, Slot p_94530_2_)
- Overrides:
canTakeItemForPickAll
in classContainer
-
getResultSlotIndex
public int getResultSlotIndex()
- Specified by:
getResultSlotIndex
in classRecipeBookContainer<CraftingInventory>
-
getGridWidth
public int getGridWidth()
- Specified by:
getGridWidth
in classRecipeBookContainer<CraftingInventory>
-
getGridHeight
public int getGridHeight()
- Specified by:
getGridHeight
in classRecipeBookContainer<CraftingInventory>
-
getSize
public int getSize()
- Specified by:
getSize
in classRecipeBookContainer<CraftingInventory>
-
getRecipeBookType
public RecipeBookCategory getRecipeBookType()
- Specified by:
getRecipeBookType
in classRecipeBookContainer<CraftingInventory>
-
-