@Environment(value=CLIENT) public class EnchantmentScreen extends HandledScreen<EnchantmentScreenHandler>
Modifier and Type | Field and Description |
---|---|
float |
approximatePageAngle |
private static BookModel |
BOOK_MODEL |
private static Identifier |
BOOK_TEXURE |
float |
nextPageAngle |
float |
nextPageTurningSpeed |
float |
pageAngle |
float |
pageRotationSpeed |
float |
pageTurningSpeed |
private Random |
random |
private ItemStack |
stack |
private static Identifier |
TEXTURE |
int |
ticks |
BACKGROUND_TEXTURE, backgroundHeight, backgroundWidth, cursorDragSlots, focusedSlot, handler, isCursorDragging, playerInventory, x, y
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
EnchantmentScreen(EnchantmentScreenHandler handler,
PlayerInventory inventory,
Text title) |
Modifier and Type | Method and Description |
---|---|
void |
doTick() |
protected void |
drawBackground(float delta,
int mouseX,
int mouseY) |
protected void |
drawForeground(int mouseX,
int mouseY) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
void |
render(int mouseX,
int mouseY,
float delta) |
void |
tick() |
drawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, init, isClickOutsideBounds, isPauseScreen, isPointWithinBounds, keyPressed, mouseDragged, mouseReleased, onMouseClick, removed, shouldCloseOnEsc
addButton, 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, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocus
mouseMoved
private static final Identifier TEXTURE
private static final Identifier BOOK_TEXURE
private static final BookModel BOOK_MODEL
private final Random random
public int ticks
public float nextPageAngle
public float pageAngle
public float approximatePageAngle
public float pageRotationSpeed
public float nextPageTurningSpeed
public float pageTurningSpeed
private ItemStack stack
public EnchantmentScreen(EnchantmentScreenHandler handler, PlayerInventory inventory, Text title)
protected void drawForeground(int mouseX, int mouseY)
drawForeground
in class HandledScreen<EnchantmentScreenHandler>
public void tick()
tick
in class HandledScreen<EnchantmentScreenHandler>
public boolean mouseClicked(double mouseX, double mouseY, int button)
mouseClicked
in interface Element
mouseClicked
in interface ParentElement
mouseClicked
in class HandledScreen<EnchantmentScreenHandler>
protected void drawBackground(float delta, int mouseX, int mouseY)
drawBackground
in class HandledScreen<EnchantmentScreenHandler>
public void render(int mouseX, int mouseY, float delta)
render
in interface Drawable
render
in class HandledScreen<EnchantmentScreenHandler>
public void doTick()