@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, ybuttons, children, client, height, itemRenderer, passEvents, textRenderer, title, widthGUI_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, 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, charTyped, focusOn, hoveredElement, keyReleased, mouseScrolled, setInitialFocusmouseMovedprivate 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 ElementmouseClicked in interface ParentElementmouseClicked 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 Drawablerender in class HandledScreen<EnchantmentScreenHandler>public void doTick()