@Environment(value=CLIENT) public class StonecutterScreen extends HandledScreen<StonecutterScreenHandler>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canCraft |
private boolean |
mouseClicked |
private float |
scrollAmount |
private int |
scrollOffset |
private static Identifier |
TEXTURE |
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 |
|---|
StonecutterScreen(StonecutterScreenHandler handler,
PlayerInventory inventory,
Text title) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBackground(float delta,
int mouseX,
int mouseY) |
protected void |
drawForeground(int mouseX,
int mouseY) |
protected void |
drawMouseoverTooltip(int mouseX,
int mouseY) |
protected int |
getMaxScroll() |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseDragged(double mouseX,
double mouseY,
int button,
double deltaX,
double deltaY) |
boolean |
mouseScrolled(double mouseX,
double mouseY,
double amount) |
private void |
onInventoryChange() |
void |
render(int mouseX,
int mouseY,
float delta) |
private void |
renderRecipeBackground(int mouseX,
int mouseY,
int x,
int y,
int scrollOffset) |
private void |
renderRecipeIcons(int x,
int y,
int scrollOffset) |
private boolean |
shouldScroll() |
getScreenHandler, handleHotbarKeyPressed, init, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, mouseReleased, onMouseClick, removed, shouldCloseOnEsc, tickaddButton, 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, charTyped, focusOn, hoveredElement, keyReleased, setInitialFocusmouseMovedprivate static final Identifier TEXTURE
private float scrollAmount
private boolean mouseClicked
private int scrollOffset
private boolean canCraft
public StonecutterScreen(StonecutterScreenHandler handler, PlayerInventory inventory, Text title)
public void render(int mouseX,
int mouseY,
float delta)
render in interface Drawablerender in class HandledScreen<StonecutterScreenHandler>protected void drawForeground(int mouseX,
int mouseY)
drawForeground in class HandledScreen<StonecutterScreenHandler>protected void drawBackground(float delta,
int mouseX,
int mouseY)
drawBackground in class HandledScreen<StonecutterScreenHandler>protected void drawMouseoverTooltip(int mouseX,
int mouseY)
drawMouseoverTooltip in class HandledScreen<StonecutterScreenHandler>private void renderRecipeBackground(int mouseX,
int mouseY,
int x,
int y,
int scrollOffset)
private void renderRecipeIcons(int x,
int y,
int scrollOffset)
public boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface ElementmouseClicked in interface ParentElementmouseClicked in class HandledScreen<StonecutterScreenHandler>public boolean mouseDragged(double mouseX,
double mouseY,
int button,
double deltaX,
double deltaY)
mouseDragged in interface ElementmouseDragged in interface ParentElementmouseDragged in class HandledScreen<StonecutterScreenHandler>public boolean mouseScrolled(double mouseX,
double mouseY,
double amount)
private boolean shouldScroll()
protected int getMaxScroll()
private void onInventoryChange()