Class RecipeBookContainer<C extends IInventory>
- java.lang.Object
-
- net.minecraft.inventory.container.Container
-
- net.minecraft.inventory.container.RecipeBookContainer<C>
-
- Direct Known Subclasses:
AbstractFurnaceContainer
,PlayerContainer
,WorkbenchContainer
public abstract class RecipeBookContainer<C extends IInventory> extends Container
-
-
Field Summary
-
Fields inherited from class net.minecraft.inventory.container.Container
containerId, slots
-
-
Constructor Summary
Constructors Constructor Description RecipeBookContainer(ContainerType<?> p_i50067_1_, int p_i50067_2_)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
clearCraftingContent()
abstract void
fillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)
abstract int
getGridHeight()
abstract int
getGridWidth()
java.util.List<RecipeBookCategories>
getRecipeBookCategories()
abstract RecipeBookCategory
getRecipeBookType()
abstract int
getResultSlotIndex()
abstract int
getSize()
void
handlePlacement(boolean p_217056_1_, IRecipe<?> p_217056_2_, ServerPlayerEntity p_217056_3_)
abstract boolean
recipeMatches(IRecipe<? super C> p_201769_1_)
-
Methods inherited from class net.minecraft.inventory.container.Container
addDataSlot, addDataSlots, addSlot, addSlotListener, backup, broadcastChanges, canDragTo, canItemQuickReplace, canTakeItemForPickAll, checkContainerDataCount, checkContainerSize, clearContainer, clicked, clickMenuButton, consideredTheSameItem, getItems, getQuickcraftHeader, getQuickcraftMask, getQuickCraftSlotCount, getQuickcraftType, getRedstoneSignalFromBlockEntity, getRedstoneSignalFromContainer, getSlot, getType, isSynched, isValidQuickcraftType, moveItemStackTo, quickMoveStack, removed, removeSlotListener, resetQuickCraft, setAll, setData, setItem, setSynched, slotsChanged, stillValid, stillValid
-
-
-
-
Constructor Detail
-
RecipeBookContainer
public RecipeBookContainer(ContainerType<?> p_i50067_1_, int p_i50067_2_)
-
-
Method Detail
-
handlePlacement
public void handlePlacement(boolean p_217056_1_, IRecipe<?> p_217056_2_, ServerPlayerEntity p_217056_3_)
-
fillCraftSlotsStackedContents
public abstract void fillCraftSlotsStackedContents(RecipeItemHelper p_201771_1_)
-
clearCraftingContent
public abstract void clearCraftingContent()
-
getResultSlotIndex
public abstract int getResultSlotIndex()
-
getGridWidth
public abstract int getGridWidth()
-
getGridHeight
public abstract int getGridHeight()
-
getSize
public abstract int getSize()
-
getRecipeBookCategories
public java.util.List<RecipeBookCategories> getRecipeBookCategories()
-
getRecipeBookType
public abstract RecipeBookCategory getRecipeBookType()
-
-