Class ModelBrowserAnvilScreenMixin

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AnvilMenu>
net.minecraft.client.gui.screens.inventory.ItemCombinerScreen<net.minecraft.world.inventory.AnvilMenu>
net.minecraft.client.gui.screens.inventory.AnvilScreen
com.mrbysco.enhancedanvils.mixin.ModelBrowserAnvilScreenMixin
All Implemented Interfaces:
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<net.minecraft.world.inventory.AnvilMenu>, net.minecraft.world.inventory.ContainerListener

public abstract class ModelBrowserAnvilScreenMixin extends net.minecraft.client.gui.screens.inventory.AnvilScreen
Based on AnvilScreenMixin from ModelBrowser but adapted for ExtendedAnvilScreen Original: ... License: CC0-1.0
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen

    net.minecraft.client.gui.screens.Screen.NarratableSearchResult
  • Field Summary

    Fields inherited from class net.minecraft.client.gui.screens.inventory.AnvilScreen

    name

    Fields inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    BACKGROUND_TEXTURE_HEIGHT, BACKGROUND_TEXTURE_WIDTH, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, titleLabelX, titleLabelY, topPos

    Fields inherited from class net.minecraft.client.gui.screens.Screen

    FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, screenExecutor, title, width
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelBrowserAnvilScreenMixin(net.minecraft.world.inventory.AnvilMenu menu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawWidget(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTick, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)
     
    boolean
    mouseClicked(net.minecraft.client.input.MouseButtonEvent click, boolean doubled)
     
    boolean
    mouseReleased(net.minecraft.client.input.MouseButtonEvent click)
     
    protected abstract void
     

    Methods inherited from class net.minecraft.client.gui.screens.inventory.AnvilScreen

    containerTick, extractBackground, extractErrorIcon, extractLabels, keyPressed, onNameChanged, resize, setInitialFocus, slotChanged

    Methods inherited from class net.minecraft.client.gui.screens.inventory.ItemCombinerScreen

    dataChanged, init, removed

    Methods inherited from class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen

    addItemSlotMouseAction, checkHotbarKeyPressed, clearDraggingState, extractCarriedItem, extractContents, extractRenderState, extractSlot, extractSlots, extractSnapbackItem, extractTooltip, getMenu, getTooltipFromContainerItem, handleSlotStateChanged, hasClickedOutside, isHovering, isInGameUi, isPauseScreen, mouseDragged, mouseScrolled, onClose, slotClicked, tick

    Methods inherited from class net.minecraft.client.gui.screens.Screen

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isMouseOver, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removeWidget, repositionElements, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus

    Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler

    charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, nextFocusPath, preeditUpdated, setFocused

    Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener

    mouseMoved, shouldTakeFocusAfterInteraction

    Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement

    getTabOrderGroup
  • Constructor Details

    • ModelBrowserAnvilScreenMixin

      public ModelBrowserAnvilScreenMixin(net.minecraft.world.inventory.AnvilMenu menu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component title)
  • Method Details

    • subInit

      protected abstract void subInit()
      Overrides:
      subInit in class net.minecraft.client.gui.screens.inventory.AnvilScreen
    • mouseClicked

      public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent click, boolean doubled)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseClicked in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AnvilMenu>
    • mouseReleased

      public boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent click)
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      mouseReleased in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<net.minecraft.world.inventory.AnvilMenu>
    • drawWidget

      public void drawWidget(net.minecraft.client.gui.GuiGraphicsExtractor graphics, int mouseX, int mouseY, float partialTick, org.spongepowered.asm.mixin.injection.callback.CallbackInfo ci)