@Environment(value=CLIENT) public class InventoryScreen extends AbstractInventoryScreen<PlayerScreenHandler> implements RecipeBookProvider
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isMouseDown |
private boolean |
isNarrow |
private boolean |
isOpen |
private float |
mouseX |
private float |
mouseY |
private static Identifier |
RECIPE_BUTTON_TEXTURE |
private RecipeBookWidget |
recipeBook |
drawStatusEffectsBACKGROUND_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 |
|---|
InventoryScreen(PlayerEntity player) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawBackground(MatrixStack matrixStack,
float float2,
int mouseY,
int int2) |
static void |
drawEntity(int x,
int y,
int size,
float mouseX,
float mouseY,
LivingEntity entity) |
protected void |
drawForeground(MatrixStack matrixStack,
int int2,
int int3) |
RecipeBookWidget |
getRecipeBookWidget() |
protected void |
init() |
protected boolean |
isClickOutsideBounds(double mouseX,
double mouseY,
int left,
int top,
int button) |
protected boolean |
isPointWithinBounds(int xPosition,
int yPosition,
int width,
int height,
double pointX,
double pointY) |
boolean |
mouseClicked(double mouseX,
double mouseY,
int button) |
boolean |
mouseReleased(double mouseX,
double mouseY,
int button) |
protected void |
onMouseClick(Slot slot,
int invSlot,
int clickData,
SlotActionType actionType) |
void |
refreshRecipeBook() |
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
tick() |
applyStatusEffectOffsetdrawMouseoverTooltip, getScreenHandler, handleHotbarKeyPressed, isPauseScreen, keyPressed, mouseDragged, 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 RECIPE_BUTTON_TEXTURE
private float mouseX
private float mouseY
private final RecipeBookWidget recipeBook
private boolean isOpen
private boolean isNarrow
private boolean isMouseDown
public InventoryScreen(PlayerEntity player)
public void tick()
tick in class HandledScreen<PlayerScreenHandler>protected void init()
init in class AbstractInventoryScreen<PlayerScreenHandler>protected void drawForeground(MatrixStack matrixStack, int int2, int int3)
drawForeground in class HandledScreen<PlayerScreenHandler>public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
render in interface Drawablerender in class AbstractInventoryScreen<PlayerScreenHandler>protected void drawBackground(MatrixStack matrixStack, float float2, int mouseY, int int2)
drawBackground in class HandledScreen<PlayerScreenHandler>public static void drawEntity(int x,
int y,
int size,
float mouseX,
float mouseY,
LivingEntity entity)
protected boolean isPointWithinBounds(int xPosition,
int yPosition,
int width,
int height,
double pointX,
double pointY)
isPointWithinBounds in class HandledScreen<PlayerScreenHandler>public boolean mouseClicked(double mouseX,
double mouseY,
int button)
mouseClicked in interface ElementmouseClicked in interface ParentElementmouseClicked in class HandledScreen<PlayerScreenHandler>public boolean mouseReleased(double mouseX,
double mouseY,
int button)
mouseReleased in interface ElementmouseReleased in interface ParentElementmouseReleased in class HandledScreen<PlayerScreenHandler>protected boolean isClickOutsideBounds(double mouseX,
double mouseY,
int left,
int top,
int button)
isClickOutsideBounds in class HandledScreen<PlayerScreenHandler>protected void onMouseClick(Slot slot, int invSlot, int clickData, SlotActionType actionType)
public void refreshRecipeBook()
refreshRecipeBook in interface RecipeBookProviderpublic void removed()
removed in class HandledScreen<PlayerScreenHandler>public RecipeBookWidget getRecipeBookWidget()
getRecipeBookWidget in interface RecipeBookProvider