@Environment(value=CLIENT) public abstract class AbstractFurnaceScreen<T extends AbstractFurnaceScreenHandler> extends HandledScreen<T> implements RecipeBookProvider
| Modifier and Type | Field and Description |
|---|---|
private Identifier |
background |
private boolean |
narrow |
private static Identifier |
RECIPE_BUTTON_TEXTURE |
AbstractFurnaceRecipeBookScreen |
recipeBook |
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragSlots, focusedSlot, handler, isCursorDragging, playerInventory, x, ybuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
AbstractFurnaceScreen(T handler,
AbstractFurnaceRecipeBookScreen recipeBook,
PlayerInventory inventory,
Text title,
Identifier background) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
charTyped(char chr,
int keyCode) |
protected void |
drawBackground(float delta,
int mouseX,
int mouseY) |
protected void |
drawForeground(int mouseX,
int mouseY) |
RecipeBookWidget |
getRecipeBookWidget() |
void |
init() |
protected boolean |
isClickOutsideBounds(double mouseX,
double mouseY,
int left,
int top,
int button) |
boolean |
keyPressed(int keyCode,
int scanCode,
int modifiers) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
protected void |
onMouseClick(Slot slot,
int invSlot,
int clickData,
SlotActionType actionType) |
void |
refreshRecipeBook() |
void |
removed() |
void |
render(int mouseX,
int mouseY,
float delta) |
void |
tick() |
drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isPauseScreen, isPointWithinBounds, mouseDragged, mouseReleased, shouldCloseOnEscaddButton, addChild, children, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderDirtBackground, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, wrapScreenErrorgetFocused, isDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchangeFocus, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocusmouseMovedprivate static final Identifier RECIPE_BUTTON_TEXTURE
public final AbstractFurnaceRecipeBookScreen recipeBook
private boolean narrow
private final Identifier background
public AbstractFurnaceScreen(T handler, AbstractFurnaceRecipeBookScreen recipeBook, PlayerInventory inventory, Text title, Identifier background)
public void init()
init in class HandledScreen<T extends AbstractFurnaceScreenHandler>public void tick()
tick in class HandledScreen<T extends AbstractFurnaceScreenHandler>public void render(int mouseX,
int mouseY,
float delta)
render in interface Drawablerender in class HandledScreen<T extends AbstractFurnaceScreenHandler>protected void drawForeground(int mouseX,
int mouseY)
drawForeground in class HandledScreen<T extends AbstractFurnaceScreenHandler>protected void drawBackground(float delta,
int mouseX,
int mouseY)
drawBackground in class HandledScreen<T extends AbstractFurnaceScreenHandler>public boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface ElementmouseClicked in interface ParentElementmouseClicked in class HandledScreen<T extends AbstractFurnaceScreenHandler>protected void onMouseClick(Slot slot, int invSlot, int clickData, SlotActionType actionType)
public boolean keyPressed(int keyCode,
int scanCode,
int modifiers)
keyPressed in interface ElementkeyPressed in interface ParentElementkeyPressed in class HandledScreen<T extends AbstractFurnaceScreenHandler>protected boolean isClickOutsideBounds(double mouseX,
double mouseY,
int left,
int top,
int button)
isClickOutsideBounds in class HandledScreen<T extends AbstractFurnaceScreenHandler>public boolean charTyped(char chr,
int keyCode)
charTyped in interface ElementcharTyped in interface ParentElementpublic void refreshRecipeBook()
refreshRecipeBook in interface RecipeBookProviderpublic RecipeBookWidget getRecipeBookWidget()
getRecipeBookWidget in interface RecipeBookProviderpublic void removed()
removed in class HandledScreen<T extends AbstractFurnaceScreenHandler>