类 InventoryScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen<InventoryMenu>
net.minecraft.client.gui.screens.inventory.InventoryScreen
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
,MenuAccess<InventoryMenu>
,RecipeUpdateListener
public class InventoryScreen
extends EffectRenderingInventoryScreen<InventoryMenu>
implements RecipeUpdateListener
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
字段概要
字段修饰符和类型字段说明private boolean
private static final ResourceLocation
private final RecipeBookComponent
private boolean
private float
private float
从类继承的字段 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, slotColor, titleLabelX, titleLabelY, topPos
从类继承的字段 net.minecraft.client.gui.screens.Screen
BACKGROUND_LOCATION, font, height, minecraft, renderables, screenExecutor, title, width
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
protected boolean
hasClickedOutside
(double pMouseX, double pMouseY, int pGuiLeft, int pGuiTop, int pMouseButton) protected void
init()
protected boolean
isHovering
(int pX, int pY, int pWidth, int pHeight, double pMouseX, double pMouseY) boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) boolean
mouseReleased
(double pMouseX, double pMouseY, int pButton) void
void
render
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected void
renderBg
(GuiGraphics pGuiGraphics, float pPartialTick, int pMouseX, int pMouseY) static void
renderEntityInInventory
(GuiGraphics pGuiGraphics, int pX, int pY, int pScale, org.joml.Quaternionf p_281880_, org.joml.Quaternionf pCameraOrientation, LivingEntity pEntity) static void
renderEntityInInventoryFollowsAngle
(GuiGraphics pGuiGraphics, int pX, int pY, int pScale, float angleXComponent, float angleYComponent, LivingEntity pEntity) static void
renderEntityInInventoryFollowsMouse
(GuiGraphics pGuiGraphics, int pX, int pY, int pScale, float p_275604_, float p_275546_, LivingEntity pEntity) protected void
renderLabels
(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY) protected void
slotClicked
(Slot pSlot, int pSlotId, int pMouseButton, ClickType pType) 从类继承的方法 net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen
canSeeEffects
从类继承的方法 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen
checkHotbarKeyPressed, clearDraggingState, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, isPauseScreen, keyPressed, mouseDragged, onClose, removed, renderSlotHighlight, renderSlotHighlight, renderTooltip, tick
从类继承的方法 net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderBackground, renderDirtBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
从类继承的方法 net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
RECIPE_BUTTON_LOCATION
-
xMouse
private float xMouse -
yMouse
private float yMouse -
recipeBookComponent
-
widthTooNarrow
private boolean widthTooNarrow -
buttonClicked
private boolean buttonClicked
-
-
构造器详细资料
-
InventoryScreen
-
-
方法详细资料
-
containerTick
public void containerTick() -
init
protected void init()- 覆盖:
init
在类中AbstractContainerScreen<InventoryMenu>
-
renderLabels
-
render
- 指定者:
render
在接口中Renderable
- 覆盖:
render
在类中EffectRenderingInventoryScreen<InventoryMenu>
-
renderBg
- 指定者:
renderBg
在类中AbstractContainerScreen<InventoryMenu>
-
renderEntityInInventoryFollowsMouse
public static void renderEntityInInventoryFollowsMouse(GuiGraphics pGuiGraphics, int pX, int pY, int pScale, float p_275604_, float p_275546_, LivingEntity pEntity) -
renderEntityInInventoryFollowsAngle
public static void renderEntityInInventoryFollowsAngle(GuiGraphics pGuiGraphics, int pX, int pY, int pScale, float angleXComponent, float angleYComponent, LivingEntity pEntity) -
renderEntityInInventory
public static void renderEntityInInventory(GuiGraphics pGuiGraphics, int pX, int pY, int pScale, org.joml.Quaternionf p_281880_, @Nullable org.joml.Quaternionf pCameraOrientation, LivingEntity pEntity) -
isHovering
protected boolean isHovering(int pX, int pY, int pWidth, int pHeight, double pMouseX, double pMouseY) -
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) - 指定者:
mouseClicked
在接口中ContainerEventHandler
- 指定者:
mouseClicked
在接口中GuiEventListener
- 覆盖:
mouseClicked
在类中AbstractContainerScreen<InventoryMenu>
-
mouseReleased
public boolean mouseReleased(double pMouseX, double pMouseY, int pButton) - 指定者:
mouseReleased
在接口中ContainerEventHandler
- 指定者:
mouseReleased
在接口中GuiEventListener
- 覆盖:
mouseReleased
在类中AbstractContainerScreen<InventoryMenu>
-
hasClickedOutside
protected boolean hasClickedOutside(double pMouseX, double pMouseY, int pGuiLeft, int pGuiTop, int pMouseButton) -
slotClicked
-
recipesUpdated
public void recipesUpdated()- 指定者:
recipesUpdated
在接口中RecipeUpdateListener
-
getRecipeBookComponent
- 指定者:
getRecipeBookComponent
在接口中RecipeUpdateListener
-