Class RadiosmitherScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<RadiosmitherMenu>
com.codinglitch.simpleradio.client.screens.RadiosmitherScreen
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<RadiosmitherMenu>

public class RadiosmitherScreen extends net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<RadiosmitherMenu>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

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

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

    Fields
    Modifier and Type
    Field
    Description
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
     
    protected int
     
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    static final net.minecraft.resources.ResourceLocation
     
    protected int
     
     

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

    hoveredSlot, imageHeight, imageWidth, INVENTORY_LOCATION, inventoryLabelX, inventoryLabelY, isQuickCrafting, leftPos, menu, playerInventoryTitle, quickCraftSlots, SLOT_ITEM_BLIT_OFFSET, titleLabelX, titleLabelY, topPos

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

    BACKGROUND_LOCATION, font, height, minecraft, screenExecutor, title, width

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

    DOUBLE_CLICK_THRESHOLD_MS
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    protected void
    incrementFrequency(int increment)
     
    protected void
     
    boolean
    mouseReleased(double $$0, double $$1, int $$2)
     
    void
    render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float delta)
     
    protected void
    renderBg(net.minecraft.client.gui.GuiGraphics graphics, float delta, int mouseX, int mousey)
     
    protected void
    renderLabels(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
     

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

    checkHotbarKeyPressed, clearDraggingState, getMenu, getTooltipFromContainerItem, hasClickedOutside, isHovering, isPauseScreen, keyPressed, mouseClicked, mouseDragged, onClose, removed, renderBackground, renderSlotHighlight, renderTooltip, slotClicked, tick

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

    added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, narrationEnabled, onFilesDrop, rebuildWidgets, removeWidget, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError

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

    getFocused, isDragging, setDragging, setFocused

    Methods inherited from class java.lang.Object

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

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

    charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, magicalSpecialHackyFocus, mouseScrolled, nextFocusPath, setFocused

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

    mouseMoved

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

    getTabOrderGroup
  • Field Details

    • FM_NORMAL_SPRITE

      public static final net.minecraft.resources.ResourceLocation FM_NORMAL_SPRITE
    • FM_SELECTED_SPRITE

      public static final net.minecraft.resources.ResourceLocation FM_SELECTED_SPRITE
    • FM_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.ResourceLocation FM_HIGHLIGHTED_SPRITE
    • AM_NORMAL_SPRITE

      public static final net.minecraft.resources.ResourceLocation AM_NORMAL_SPRITE
    • AM_SELECTED_SPRITE

      public static final net.minecraft.resources.ResourceLocation AM_SELECTED_SPRITE
    • AM_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.ResourceLocation AM_HIGHLIGHTED_SPRITE
    • INCREASE_NORMAL_SPRITE

      public static final net.minecraft.resources.ResourceLocation INCREASE_NORMAL_SPRITE
    • INCREASE_HELD_SPRITE

      public static final net.minecraft.resources.ResourceLocation INCREASE_HELD_SPRITE
    • INCREASE_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.ResourceLocation INCREASE_HIGHLIGHTED_SPRITE
    • DECREASE_NORMAL_SPRITE

      public static final net.minecraft.resources.ResourceLocation DECREASE_NORMAL_SPRITE
    • DECREASE_HELD_SPRITE

      public static final net.minecraft.resources.ResourceLocation DECREASE_HELD_SPRITE
    • DECREASE_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.ResourceLocation DECREASE_HIGHLIGHTED_SPRITE
    • APPLY_NORMAL_SPRITE

      public static final net.minecraft.resources.ResourceLocation APPLY_NORMAL_SPRITE
    • APPLY_HIGHLIGHTED_SPRITE

      public static final net.minecraft.resources.ResourceLocation APPLY_HIGHLIGHTED_SPRITE
    • FM_BUTTON

    • AM_BUTTON

    • INCREASE_BUTTON

      public RadiosmitherScreen.FrequencyButton INCREASE_BUTTON
    • DECREASE_BUTTON

      public RadiosmitherScreen.FrequencyButton DECREASE_BUTTON
    • APPLY_BUTTON

      public BaseButton APPLY_BUTTON
    • frequency

      public String frequency
    • modulation

      public Frequency.Modulation modulation
    • holdingFor

      protected int holdingFor
    • increment

      protected int increment
  • Constructor Details

    • RadiosmitherScreen

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

    • incrementFrequency

      protected void incrementFrequency()
    • incrementFrequency

      protected void incrementFrequency(int increment)
    • containerTick

      protected void containerTick()
      Overrides:
      containerTick in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<RadiosmitherMenu>
    • renderBg

      protected void renderBg(net.minecraft.client.gui.GuiGraphics graphics, float delta, int mouseX, int mousey)
      Specified by:
      renderBg in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<RadiosmitherMenu>
    • render

      public void render(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface net.minecraft.client.gui.components.Renderable
      Overrides:
      render in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<RadiosmitherMenu>
    • renderLabels

      protected void renderLabels(net.minecraft.client.gui.GuiGraphics graphics, int mouseX, int mouseY)
      Overrides:
      renderLabels in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<RadiosmitherMenu>
    • mouseReleased

      public boolean mouseReleased(double $$0, double $$1, int $$2)
      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<RadiosmitherMenu>
    • init

      protected void init()
      Overrides:
      init in class net.minecraft.client.gui.screens.inventory.AbstractContainerScreen<RadiosmitherMenu>