类 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 intprotected intprotected 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) -
方法概要
修饰符和类型方法说明voiddataChanged(@NotNull net.minecraft.world.inventory.AbstractContainerMenu pContainerMenu, int pDataSlotIndex, int pValue) protected static Stringprotected voidinit()protected static Stringvoidreceive(net.minecraft.nbt.CompoundTag tag) voidremoved()voidrender(@NotNull net.minecraft.client.gui.GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) protected voidrenderBg(@NotNull net.minecraft.client.gui.GuiGraphics pGuiGraphics, float pPartialTick, int pMouseX, int pMouseY) protected voidrenderBgs(net.minecraft.client.gui.GuiGraphics pGuiGraphics, float pPartialTick, int pX, int pY) protected voidrenderFg(net.minecraft.client.gui.GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick) voidslotChanged(@NotNull net.minecraft.world.inventory.AbstractContainerMenu pContainerToSend, int pSlotInd, @NotNull net.minecraft.world.item.ItemStack pStack) protected voidsubInit()从类继承的方法 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
-
fraction
-
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
-