Package net.minecraft.screen
Class AbstractFurnaceScreenHandler
java.lang.Object
net.minecraft.screen.ScreenHandler
net.minecraft.screen.AbstractRecipeScreenHandler<Inventory>
net.minecraft.screen.AbstractFurnaceScreenHandler
- Direct Known Subclasses:
BlastFurnaceScreenHandler,FurnaceScreenHandler,SmokerScreenHandler
public abstract class AbstractFurnaceScreenHandler extends AbstractRecipeScreenHandler<Inventory>
-
Field Summary
Fields Modifier and Type Field Description private RecipeBookCategorycategoryprivate Inventoryinventoryprivate PropertyDelegatepropertyDelegateprivate RecipeType<? extends AbstractCookingRecipe>recipeTypeprotected WorldworldFields inherited from class net.minecraft.screen.ScreenHandler
slots, syncId -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory)protectedAbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate) -
Method Summary
Modifier and Type Method Description booleancanUse(PlayerEntity player)voidclearCraftingSlots()RecipeBookCategorygetCategory()intgetCookProgress()intgetCraftingHeight()intgetCraftingResultSlotIndex()intgetCraftingSlotCount()intgetCraftingWidth()intgetFuelProgress()booleanisBurning()protected booleanisFuel(ItemStack itemStack)protected booleanisSmeltable(ItemStack itemStack)booleanmatches(Recipe<? super Inventory> recipe)booleanmethod_32339(int int2)voidpopulateRecipeFinder(RecipeFinder finder)ItemStacktransferSlot(PlayerEntity player, int index)Methods inherited from class net.minecraft.screen.AbstractRecipeScreenHandler
fillInputSlotsMethods inherited from class net.minecraft.screen.ScreenHandler
addListener, addProperties, addProperty, addSlot, calculateComparatorOutput, calculateComparatorOutput, calculateStackSize, canInsertIntoSlot, canInsertIntoSlot, canInsertItemIntoSlot, canUse, checkDataCount, checkSize, close, dropInventory, endQuickCraft, getNextActionId, getSlot, getStacks, getType, insertItem, isNotRestricted, onButtonClick, onContentChanged, onSlotClick, packQuickCraftData, removeListener, sendContentUpdates, setPlayerRestriction, setProperty, setStackInSlot, shouldQuickCraftContinue, unpackQuickCraftButton, unpackQuickCraftStage, updateSlotStacks
-
Field Details
-
inventory
-
propertyDelegate
-
world
-
recipeType
-
category
-
-
Constructor Details
-
AbstractFurnaceScreenHandler
protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory) -
AbstractFurnaceScreenHandler
protected AbstractFurnaceScreenHandler(ScreenHandlerType<?> type, RecipeType<? extends AbstractCookingRecipe> recipeType, RecipeBookCategory recipeBookCategory, int int2, PlayerInventory playerInventory, Inventory inventory, PropertyDelegate propertyDelegate)
-
-
Method Details
-
populateRecipeFinder
- Specified by:
populateRecipeFinderin classAbstractRecipeScreenHandler<Inventory>
-
clearCraftingSlots
public void clearCraftingSlots()- Specified by:
clearCraftingSlotsin classAbstractRecipeScreenHandler<Inventory>
-
matches
- Specified by:
matchesin classAbstractRecipeScreenHandler<Inventory>
-
getCraftingResultSlotIndex
public int getCraftingResultSlotIndex()- Specified by:
getCraftingResultSlotIndexin classAbstractRecipeScreenHandler<Inventory>
-
getCraftingWidth
public int getCraftingWidth()- Specified by:
getCraftingWidthin classAbstractRecipeScreenHandler<Inventory>
-
getCraftingHeight
public int getCraftingHeight()- Specified by:
getCraftingHeightin classAbstractRecipeScreenHandler<Inventory>
-
getCraftingSlotCount
public int getCraftingSlotCount()- Specified by:
getCraftingSlotCountin classAbstractRecipeScreenHandler<Inventory>
-
canUse
- Specified by:
canUsein classScreenHandler
-
transferSlot
- Overrides:
transferSlotin classScreenHandler
-
isSmeltable
-
isFuel
-
getCookProgress
@Environment(CLIENT) public int getCookProgress() -
getFuelProgress
@Environment(CLIENT) public int getFuelProgress() -
isBurning
@Environment(CLIENT) public boolean isBurning() -
getCategory
- Specified by:
getCategoryin classAbstractRecipeScreenHandler<Inventory>
-
method_32339
public boolean method_32339(int int2)- Specified by:
method_32339in classAbstractRecipeScreenHandler<Inventory>
-