Package net.minecraft.screen
Class AbstractRecipeScreenHandler<C extends Inventory>
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.AbstractRecipeScreenHandler<C>
- Direct Known Subclasses:
AbstractFurnaceScreenHandler,CraftingScreenHandler,PlayerScreenHandler
public abstract class AbstractRecipeScreenHandler<C extends Inventory> extends ScreenHandler
-
Field Summary
Fields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Constructor Description AbstractRecipeScreenHandler(ScreenHandlerType<?> type, int syncId) -
Method Summary
Modifier and Type Method Description abstract voidclearCraftingSlots()voidfillInputSlots(boolean craftAll, Recipe<?> recipe, ServerPlayerEntity player)abstract RecipeBookCategorygetCategory()abstract intgetCraftingHeight()abstract intgetCraftingResultSlotIndex()abstract intgetCraftingSlotCount()abstract intgetCraftingWidth()abstract booleanmatches(Recipe<? super C> recipe)abstract booleanmethod_32339(int int2)abstract voidpopulateRecipeFinder(RecipeFinder finder)Methods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, canUse, checkDataCount, checkSize, close, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, transferSlot, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Constructor Details
-
AbstractRecipeScreenHandler
-
-
Method Details
-
fillInputSlots
-
populateRecipeFinder
-
clearCraftingSlots
public abstract void clearCraftingSlots() -
matches
-
getCraftingResultSlotIndex
public abstract int getCraftingResultSlotIndex() -
getCraftingWidth
public abstract int getCraftingWidth() -
getCraftingHeight
public abstract int getCraftingHeight() -
getCraftingSlotCount
public abstract int getCraftingSlotCount() -
getCategory
-
method_32339
public abstract boolean method_32339(int int2)
-