Class AbstractFurnaceRecipeBookScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.screen.recipebook.RecipeBookWidget
net.minecraft.client.gui.screen.recipebook.AbstractFurnaceRecipeBookScreen
- All Implemented Interfaces:
Drawable,Element,RecipeDisplayListener,RecipeGridAligner<Ingredient>
- Direct Known Subclasses:
BlastFurnaceRecipeBookScreen,FurnaceRecipeBookScreen,SmokerRecipeBookScreen
@Environment(CLIENT) public abstract class AbstractFurnaceRecipeBookScreen extends RecipeBookWidget
-
Field Summary
Fields Modifier and Type Field Description private ItemcurrentItemprivate floatframeTimeprivate Iterator<Item>fuelIteratorprivate Set<Item>fuelsprivate SlotoutputSlotFields inherited from class net.minecraft.client.gui.screen.recipebook.RecipeBookWidget
client, craftingScreenHandler, ghostSlots, recipeBook, recipeFinder, recipesArea, TEXTURE, toggleCraftableButtonFields inherited from class net.minecraft.client.gui.DrawableHelper
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description AbstractFurnaceRecipeBookScreen() -
Method Summary
Modifier and Type Method Description voiddrawGhostSlots(MatrixStack matrixStack, int int2, int int3, boolean bool, float float2)protected abstract Set<Item>getAllowedFuels()protected TextgetCraftableButtonText()private ItemgetItem()protected abstract TextgetToggleCraftableButtonText()protected abstract booleanisFilteringCraftable()protected abstract booleanisGuiOpen()booleanisOpen()protected voidsetBookButtonTexture()protected abstract voidsetFilteringCraftable(boolean filteringCraftable)protected abstract voidsetGuiOpen(boolean opened)protected voidsetOpen(boolean opened)voidshowGhostRecipe(Recipe<?> recipe, List<Slot> slots)voidslotClicked(Slot slot)protected booleantoggleFilteringCraftable()Methods inherited from class net.minecraft.client.gui.screen.recipebook.RecipeBookWidget
acceptAlignedInput, changeFocus, charTyped, close, drawTooltip, findLeftEdge, initialize, isClickOutsideBounds, isMouseOver, keyPressed, keyReleased, mouseClicked, onRecipesDisplayed, refresh, render, reset, sendBookDataPacket, toggleOpen, updateMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
fuelIterator
-
fuels
-
outputSlot
-
currentItem
-
frameTime
private float frameTime
-
-
Constructor Details
-
AbstractFurnaceRecipeBookScreen
public AbstractFurnaceRecipeBookScreen()
-
-
Method Details
-
toggleFilteringCraftable
protected boolean toggleFilteringCraftable()- Overrides:
toggleFilteringCraftablein classRecipeBookWidget
-
isFilteringCraftable
protected abstract boolean isFilteringCraftable() -
setFilteringCraftable
protected abstract void setFilteringCraftable(boolean filteringCraftable) -
isOpen
public boolean isOpen()- Overrides:
isOpenin classRecipeBookWidget
-
isGuiOpen
protected abstract boolean isGuiOpen() -
setOpen
protected void setOpen(boolean opened)- Overrides:
setOpenin classRecipeBookWidget
-
setGuiOpen
protected abstract void setGuiOpen(boolean opened) -
setBookButtonTexture
protected void setBookButtonTexture()- Overrides:
setBookButtonTexturein classRecipeBookWidget
-
getCraftableButtonText
- Overrides:
getCraftableButtonTextin classRecipeBookWidget
-
getToggleCraftableButtonText
-
slotClicked
- Overrides:
slotClickedin classRecipeBookWidget
-
showGhostRecipe
- Overrides:
showGhostRecipein classRecipeBookWidget
-
getAllowedFuels
-
drawGhostSlots
public void drawGhostSlots(MatrixStack matrixStack, int int2, int int3, boolean bool, float float2)- Overrides:
drawGhostSlotsin classRecipeBookWidget
-
getItem
-