public class InventoryScreen extends DisplayEffectsScreen<PlayerContainer> implements IRecipeShownListener
Modifier and Type | Field and Description |
---|---|
private boolean |
buttonClicked |
private float |
oldMouseX |
private float |
oldMouseY |
private static ResourceLocation |
RECIPE_BUTTON_TEXTURE |
private RecipeBookGui |
recipeBookGui |
private boolean |
removeRecipeBookGui |
private boolean |
widthTooNarrow |
hasActivePotionEffects
container, dragSplitting, dragSplittingSlots, guiLeft, guiTop, hoveredSlot, INVENTORY_BACKGROUND, playerInventory, slotColor, xSize, ySize
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
InventoryScreen(PlayerEntity player) |
Modifier and Type | Method and Description |
---|---|
static void |
drawEntityOnScreen(int posX,
int posY,
int scale,
float mouseX,
float mouseY,
LivingEntity p_228187_5_) |
protected void |
drawGuiContainerBackgroundLayer(float partialTicks,
int mouseX,
int mouseY) |
protected void |
drawGuiContainerForegroundLayer(int mouseX,
int mouseY) |
RecipeBookGui |
getRecipeGui() |
protected void |
handleMouseClick(Slot slotIn,
int slotId,
int mouseButton,
ClickType type) |
protected boolean |
hasClickedOutside(double mouseX,
double mouseY,
int guiLeftIn,
int guiTopIn,
int mouseButton) |
protected void |
init() |
protected boolean |
isPointInRegion(int x,
int y,
int width,
int height,
double mouseX,
double mouseY) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
boolean |
mouseReleased(double p_mouseReleased_1_,
double p_mouseReleased_3_,
int p_mouseReleased_5_) |
void |
recipesUpdated() |
void |
removed() |
void |
render(int p_render_1_,
int p_render_2_,
float p_render_3_) |
void |
tick() |
updateActivePotionEffects
func_195363_d, getContainer, getGuiLeft, getGuiTop, getSlotColor, getSlotUnderMouse, getXSize, getYSize, isPauseScreen, keyPressed, mouseDragged, renderHoveredToolTip, shouldCloseOnEsc
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onClose, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, setSize, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyReleased, mouseScrolled, setFocusedDefault
mouseMoved
private static final ResourceLocation RECIPE_BUTTON_TEXTURE
private float oldMouseX
private float oldMouseY
private final RecipeBookGui recipeBookGui
private boolean removeRecipeBookGui
private boolean widthTooNarrow
private boolean buttonClicked
public InventoryScreen(PlayerEntity player)
public void tick()
tick
in class ContainerScreen<PlayerContainer>
protected void init()
init
in class DisplayEffectsScreen<PlayerContainer>
protected void drawGuiContainerForegroundLayer(int mouseX, int mouseY)
drawGuiContainerForegroundLayer
in class ContainerScreen<PlayerContainer>
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
render
in interface IRenderable
render
in class DisplayEffectsScreen<PlayerContainer>
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
drawGuiContainerBackgroundLayer
in class ContainerScreen<PlayerContainer>
public static void drawEntityOnScreen(int posX, int posY, int scale, float mouseX, float mouseY, LivingEntity p_228187_5_)
protected boolean isPointInRegion(int x, int y, int width, int height, double mouseX, double mouseY)
isPointInRegion
in class ContainerScreen<PlayerContainer>
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_)
mouseClicked
in interface IGuiEventListener
mouseClicked
in interface INestedGuiEventHandler
mouseClicked
in class ContainerScreen<PlayerContainer>
public boolean mouseReleased(double p_mouseReleased_1_, double p_mouseReleased_3_, int p_mouseReleased_5_)
mouseReleased
in interface IGuiEventListener
mouseReleased
in interface INestedGuiEventHandler
mouseReleased
in class ContainerScreen<PlayerContainer>
protected boolean hasClickedOutside(double mouseX, double mouseY, int guiLeftIn, int guiTopIn, int mouseButton)
hasClickedOutside
in class ContainerScreen<PlayerContainer>
protected void handleMouseClick(Slot slotIn, int slotId, int mouseButton, ClickType type)
handleMouseClick
in class ContainerScreen<PlayerContainer>
public void recipesUpdated()
recipesUpdated
in interface IRecipeShownListener
public void removed()
removed
in class ContainerScreen<PlayerContainer>
public RecipeBookGui getRecipeGui()
getRecipeGui
in interface IRecipeShownListener