@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(MatrixStack matrixStack,
float float2,
int mouseY,
int int2) |
protected void |
drawForeground(MatrixStack matrixStack,
int int2,
int int3) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
void |
render(MatrixStack matrices,
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, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawVerticalLine, fill, fillGradient, getZOffset, method_27535, 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(MatrixStack matrixStack, int int2, int int3)
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(MatrixStack matrixStack, float float2, int mouseY, int int2)
drawBackground in class HandledScreen<EnchantmentScreenHandler>public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
render in interface Drawablerender in class HandledScreen<EnchantmentScreenHandler>public void doTick()