Class FishingMinigameScreen

java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.wdiscute.starcatcher_lite.minigame.FishingMinigameScreen
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

public class FishingMinigameScreen extends net.minecraft.client.gui.screens.Screen implements net.minecraft.client.gui.components.events.GuiEventListener
  • 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
    Modifier and Type
    Field
    Description
    protected final List<ActiveSweetSpot>
     
    com.wdiscute.utils.ScreenUtils.Image
     
    int
     
    int
     
    float
     
     
    int
     
    com.wdiscute.utils.ScreenUtils.Image
     
    float
     
    float
     
    float
     
    final net.minecraft.world.InteractionHand
     
    float
     
    final int
     
    int
     
    int
     
    protected boolean
     
    protected boolean
     
    final net.minecraft.world.item.ItemStack
     
    int
     
    float
     
    float
     
    float
     
    boolean
     
    float
     
    float
     
    boolean
     
    com.wdiscute.utils.ScreenUtils.Image
     
    protected final List<ActiveSweetSpot>
     
    com.wdiscute.utils.ScreenUtils.Image
     
    int
     
    com.wdiscute.utils.ScreenUtils.Image
     
    com.wdiscute.utils.ScreenUtils.Image
     

    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, renderables, screenExecutor, title, width
  • Constructor Summary

    Constructors
    Constructor
    Description
    FishingMinigameScreen(net.minecraft.world.item.ItemStack itemStack, Difficulty difficulty)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addParticles(float posInDegrees, int count, int color)
     
    void
     
    static int
    clampPos(int pos)
     
    static boolean
    doDegreesOverlapWithLeeway(float degrees1, float degrees2, int leeway)
     
    void
    extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor g, int mouseX, int mouseY, float a)
     
     
    float
     
    int
    getRandomFreePosition(int sizeOfTheSweetspotToPlace)
     
    void
     
    boolean
     
    boolean
     
    boolean
     
    boolean
    keyPressed(net.minecraft.client.input.KeyEvent event)
     
    boolean
    keyReleased(net.minecraft.client.input.KeyEvent event)
     
    boolean
    mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)
     
    boolean
    mouseReleased(net.minecraft.client.input.MouseButtonEvent event)
     
    void
     
    void
    renderHandle(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, org.joml.Matrix3x2fStack poseStack, float partialTickDONOTUSE)
     
    void
    renderKimbeMarker(net.minecraft.client.gui.GuiGraphicsExtractor g)
     
    void
    renderSweetSpot(ActiveSweetSpot ass, net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, float partialTick, org.joml.Matrix3x2fStack poseStack)
     
    static void
    start(net.minecraft.world.item.ItemStack itemStack, Difficulty difficulty)
     
    void
     

    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, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isValidCharacterForName, onFilesDrop, rebuildWidgets, removed, removeWidget, repositionElements, resize, setInitialFocus, 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, mouseDragged, mouseScrolled, nextFocusPath, preeditUpdated, setFocused

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

    getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteraction

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

    getTabOrderGroup
  • Field Details

    • tank

      public com.wdiscute.utils.ScreenUtils.Image tank
    • rod

      public com.wdiscute.utils.ScreenUtils.Image rod
    • handle

      public com.wdiscute.utils.ScreenUtils.Image handle
    • buttons

      public com.wdiscute.utils.ScreenUtils.Image buttons
    • treasure

      public com.wdiscute.utils.ScreenUtils.Image treasure
    • wheels

      public com.wdiscute.utils.ScreenUtils.Image wheels
    • renderBlur

      public boolean renderBlur
    • difficulty

      public Difficulty difficulty
    • item

      public final net.minecraft.world.item.ItemStack item
    • handToSwing

      public final net.minecraft.world.InteractionHand handToSwing
    • hp

      public int hp
    • penalty

      public float penalty
    • decay

      public float decay
    • kimbeMarkerPos

      public float kimbeMarkerPos
    • kimbeMarkerColor

      public int kimbeMarkerColor
    • gracePeriod

      public int gracePeriod
    • handleSpeed

      public float handleSpeed
    • handleBaseSpeed

      public float handleBaseSpeed
    • tickCount

      public int tickCount
    • handlePos

      public float handlePos
    • currentRotation

      public int currentRotation
    • partial

      public float partial
    • hitDelay

      public float hitDelay
    • progress

      public float progress
    • progressSmooth

      public float progressSmooth
    • perfectCatch

      public boolean perfectCatch
    • consecutiveHits

      public int consecutiveHits
    • holdingDelay

      public final int holdingDelay
      See Also:
    • holdingTicks

      public int holdingTicks
    • isHoldingKey

      protected boolean isHoldingKey
    • isHoldingMouse

      protected boolean isHoldingMouse
    • activeSweetSpots

      protected final List<ActiveSweetSpot> activeSweetSpots
    • spotsToAdd

      protected final List<ActiveSweetSpot> spotsToAdd
  • Constructor Details

    • FishingMinigameScreen

      public FishingMinigameScreen(net.minecraft.world.item.ItemStack itemStack, Difficulty difficulty)
  • Method Details

    • start

      public static void start(net.minecraft.world.item.ItemStack itemStack, Difficulty difficulty)
    • getActiveSweetSpots

      public List<ActiveSweetSpot> getActiveSweetSpots()
    • addSweetSpot

      public void addSweetSpot(ActiveSweetSpot ass)
    • getRandomFreePosition

      public int getRandomFreePosition(int sizeOfTheSweetspotToPlace)
    • extractBackground

      public void extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor g, int mouseX, int mouseY, float a)
      Overrides:
      extractBackground in class net.minecraft.client.gui.screens.Screen
    • renderSweetSpot

      public void renderSweetSpot(ActiveSweetSpot ass, net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, float partialTick, org.joml.Matrix3x2fStack poseStack)
    • renderKimbeMarker

      public void renderKimbeMarker(net.minecraft.client.gui.GuiGraphicsExtractor g)
    • renderHandle

      public void renderHandle(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, org.joml.Matrix3x2fStack poseStack, float partialTickDONOTUSE)
    • keyReleased

      public boolean keyReleased(net.minecraft.client.input.KeyEvent event)
      Specified by:
      keyReleased in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyReleased in interface net.minecraft.client.gui.components.events.GuiEventListener
    • mouseReleased

      public boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent event)
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseReleased in interface net.minecraft.client.gui.components.events.GuiEventListener
    • mouseClicked

      public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick)
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      mouseClicked in interface net.minecraft.client.gui.components.events.GuiEventListener
    • keyPressed

      public boolean keyPressed(net.minecraft.client.input.KeyEvent event)
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.ContainerEventHandler
      Specified by:
      keyPressed in interface net.minecraft.client.gui.components.events.GuiEventListener
      Overrides:
      keyPressed in class net.minecraft.client.gui.screens.Screen
    • inputPressed

      public void inputPressed()
    • getHandlePosPrecise

      public float getHandlePosPrecise()
    • doDegreesOverlapWithLeeway

      public static boolean doDegreesOverlapWithLeeway(float degrees1, float degrees2, int leeway)
    • tick

      public void tick()
      Overrides:
      tick in class net.minecraft.client.gui.screens.Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class net.minecraft.client.gui.screens.Screen
    • addParticles

      public void addParticles(float posInDegrees, int count, int color)
    • isHoldingInput

      public boolean isHoldingInput()
    • isSettingsScreen

      public boolean isSettingsScreen()
    • clampPos

      public static int clampPos(int pos)
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class net.minecraft.client.gui.screens.Screen