类 BaseContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T>
committee.nova.mods.avaritia.api.client.screen.BaseContainerScreen<T>
所有已实现的接口:
IDataReceiver, net.minecraft.client.gui.components.events.ContainerEventHandler, net.minecraft.client.gui.components.events.GuiEventListener, net.minecraft.client.gui.components.Renderable, net.minecraft.client.gui.components.TabOrderedElement, net.minecraft.client.gui.screens.inventory.MenuAccess<T>, net.minecraft.world.inventory.ContainerListener
直接已知子类:
CompressedChestScreen, EndCraftScreen, ExtremeAnvilScreen, ExtremeCraftScreen, InfinityChestScreen, InfinityClockScreen, NetherCraftScreen, NeutronCollectorScreen, NeutronCompressorScreen, NeutronRingScreen, SculkCraftScreen

public abstract class BaseContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu> extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T> implements net.minecraft.world.inventory.ContainerListener, IDataReceiver
Description:
  • 嵌套类概要

    从类继承的嵌套类/接口 net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected int
     
    protected int
     
    protected net.minecraft.resources.ResourceLocation
     

    从类继承的字段 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    clickedSlot, draggingItem, hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, isSplittingStack, leftPos, menu, playerInventoryTitle, quickCraftingType, 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
  • 构造器概要

    构造器
    构造器
    说明
    BaseContainerScreen(T container, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title)
     
    BaseContainerScreen(T container, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation bgTexture)
     
    BaseContainerScreen(T container, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation bgTexture, int bgWidth, int bgHeight)
     
    BaseContainerScreen(T container, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation bgTexture, int bgWidth, int bgHeight, int bgImgWidth, int bgImgHeight)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    dataChanged(@NotNull net.minecraft.world.inventory.AbstractContainerMenu pContainerMenu, int pDataSlotIndex, int pValue)
     
    protected static String
    fraction(Object number)
     
    protected void
     
    protected static String
    number(Object number)
     
    void
    receive(net.minecraft.nbt.CompoundTag tag)
     
    void
     
    void
    render(@NotNull net.minecraft.client.gui.GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
     
    protected void
    renderBg(@NotNull net.minecraft.client.gui.GuiGraphics pGuiGraphics, float pPartialTick, int pMouseX, int pMouseY)
     
    protected void
    renderBgs(net.minecraft.client.gui.GuiGraphics pGuiGraphics, float pPartialTick, int pX, int pY)
     
    protected void
    renderFg(net.minecraft.client.gui.GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
     
    void
    slotChanged(@NotNull net.minecraft.world.inventory.AbstractContainerMenu pContainerToSend, int pSlotInd, @NotNull net.minecraft.world.item.ItemStack pStack)
     
    protected void
     

    从类继承的方法 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    checkHotbarKeyPressed, clearDraggingState, containerTick, getGuiLeft, getGuiTop, getMenu, getSlotColor, getSlotUnderMouse, getTooltipFromContainerItem, getXSize, getYSize, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseClicked, mouseDragged, mouseReleased, onClose, recalculateQuickCraftRemaining, renderLabels, renderSlot, renderSlotHighlight, renderSlotHighlight, renderTooltip, slotClicked, 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
  • 字段详细资料

    • bgTexture

      protected net.minecraft.resources.ResourceLocation bgTexture
    • bgImgWidth

      protected int bgImgWidth
    • bgImgHeight

      protected int bgImgHeight
  • 构造器详细资料

    • BaseContainerScreen

      public BaseContainerScreen(T container, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title)
    • BaseContainerScreen

      public BaseContainerScreen(T container, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation bgTexture)
    • BaseContainerScreen

      public BaseContainerScreen(T container, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation bgTexture, int bgWidth, int bgHeight)
    • BaseContainerScreen

      public BaseContainerScreen(T container, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title, net.minecraft.resources.ResourceLocation bgTexture, int bgWidth, int bgHeight, int bgImgWidth, int bgImgHeight)
  • 方法详细资料

    • number

      protected static String number(Object number)
    • fraction

      protected static String fraction(Object number)
    • subInit

      protected void subInit()
    • init

      protected void init()
      覆盖:
      init 在类中 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • removed

      public void removed()
      覆盖:
      removed 在类中 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • render

      public void render(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      指定者:
      render 在接口中 net.minecraft.client.gui.components.Renderable
      覆盖:
      render 在类中 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • renderFg

      protected void renderFg(net.minecraft.client.gui.GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
    • renderBg

      protected void renderBg(@NotNull @NotNull net.minecraft.client.gui.GuiGraphics pGuiGraphics, float pPartialTick, int pMouseX, int pMouseY)
      指定者:
      renderBg 在类中 net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<T extends net.minecraft.world.inventory.AbstractContainerMenu>
    • renderBgs

      protected void renderBgs(net.minecraft.client.gui.GuiGraphics pGuiGraphics, float pPartialTick, int pX, int pY)
    • dataChanged

      public void dataChanged(@NotNull @NotNull net.minecraft.world.inventory.AbstractContainerMenu pContainerMenu, int pDataSlotIndex, int pValue)
      指定者:
      dataChanged 在接口中 net.minecraft.world.inventory.ContainerListener
    • slotChanged

      public void slotChanged(@NotNull @NotNull net.minecraft.world.inventory.AbstractContainerMenu pContainerToSend, int pSlotInd, @NotNull @NotNull net.minecraft.world.item.ItemStack pStack)
      指定者:
      slotChanged 在接口中 net.minecraft.world.inventory.ContainerListener
    • receive

      public void receive(net.minecraft.nbt.CompoundTag tag)
      指定者:
      receive 在接口中 IDataReceiver