Class FishingMinigameScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
com.wdiscute.starcatcher.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
- Direct Known Subclasses:
SettingsScreen
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
FieldsModifier and TypeFieldDescriptionprotected final List<ActiveSweetSpot> final net.minecraft.world.item.ItemStackfinal net.minecraft.world.item.ItemStackintintfloatintfinal net.minecraft.world.InteractionHandfloatfinal intintfinal net.minecraft.world.item.ItemStackintprotected booleanprotected booleanfinal net.minecraft.world.item.ItemStackfloatintfloatbooleanprotected final List<AbstractMinigameModifier> protected final List<AbstractMinigameModifier> floatintbooleanfloatfloatfloatfloatfloatfloatprotected final List<ActiveSweetSpot> final AbstractTackleSkinnet.minecraft.resources.Identifierstatic final net.minecraft.resources.Identifierintbooleanfinal net.minecraft.world.item.ItemStackintintintintFields 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
ConstructorsConstructorDescriptionFishingMinigameScreen(FishProperties fp, net.minecraft.world.item.ItemStack rod) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddParticles(float posInDegrees, int count, int color) voidvoidstatic intclampPos(int pos) static booleandoDegreesOverlapWithLeeway(float degrees1, float degrees2, int leeway) voidextractBackground(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY, float partialTickNeo) floatintgetRandomFreePosition(int sizeOfTheSweetspotToPlace) static booleanvoidbooleanbooleanbooleanbooleankeyPressed(net.minecraft.client.input.KeyEvent event) booleankeyReleased(net.minecraft.client.input.KeyEvent event) booleanmouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick) booleanmouseReleased(net.minecraft.client.input.MouseButtonEvent event) voidonClose()voidvoidvoidrenderKimbeMarker(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics) voidrenderPointer(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, org.joml.Matrix3x2fStack poseStack, float partialTick) static voidrenderPoseCentered(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.resources.Identifier texture, int spriteSize) static voidrenderPoseCentered(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.resources.Identifier texture, int spriteSize, int color) Renders a texture centered to the top left corner, to be moved with poseStackstatic voidrenderPoseCentered(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.resources.Identifier texture, int spriteWidth, int spriteHeight, int uOffset, int vOffset, int textureSize) static voidrenderPoseCentered(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.resources.Identifier texture, int spriteWidth, int spriteHeight, int uOffset, int vOffset, int textureSize, int color) voidrenderSweetSpot(ActiveSweetSpot ass, net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, float partialTick, org.joml.Matrix3x2fStack poseStack) voidrenderTreasure(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics) voidtick()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, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, repositionElements, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, mouseDragged, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
TEXTURE
public static final net.minecraft.resources.Identifier TEXTURE -
tankTexture
public net.minecraft.resources.Identifier tankTexture -
difficulty
-
rarity
-
itemBeingFished
public final net.minecraft.world.item.ItemStack itemBeingFished -
bobber
public final net.minecraft.world.item.ItemStack bobber -
bait
public final net.minecraft.world.item.ItemStack bait -
hook
public final net.minecraft.world.item.ItemStack hook -
treasureIS
public final net.minecraft.world.item.ItemStack treasureIS -
tackleSkin
-
handToSwing
public final net.minecraft.world.InteractionHand handToSwing -
hp
public int hp -
penalty
public int penalty -
decay
public float decay -
kimbeMarkerPos
public float kimbeMarkerPos -
kimbeMarkerAlpha
public float kimbeMarkerAlpha -
kimbeMarkerColor
public int kimbeMarkerColor -
gracePeriod
public int gracePeriod -
minigameStarted
public boolean minigameStarted -
pointerSpeed
public float pointerSpeed -
pointerBaseSpeed
public float pointerBaseSpeed -
tickCount
public int tickCount -
pointerPos
public float pointerPos -
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 -
treasureActive
public boolean treasureActive -
treasureProgress
public int treasureProgress -
treasureProgressSmooth
public int treasureProgressSmooth -
holdingDelay
public final int holdingDelay- See Also:
-
holdingTicks
public int holdingTicks -
isHoldingKey
protected boolean isHoldingKey -
isHoldingMouse
protected boolean isHoldingMouse -
renderScale
public float renderScale -
xOffset
public int xOffset -
yOffset
public int yOffset -
activeSweetSpots
-
spotsToAdd
-
modifiers
-
modifiersToAdd
-
-
Constructor Details
-
FishingMinigameScreen
-
-
Method Details
-
getActiveSweetSpots
-
addModifier
-
addUniqueModifier
-
addSweetSpot
-
getRandomFreePosition
public int getRandomFreePosition(int sizeOfTheSweetspotToPlace) -
extractBackground
public void extractBackground(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, int mouseX, int mouseY, float partialTickNeo) - Overrides:
extractBackgroundin classnet.minecraft.client.gui.screens.Screen
-
renderSweetSpot
public void renderSweetSpot(ActiveSweetSpot ass, net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, float partialTick, org.joml.Matrix3x2fStack poseStack) -
renderTreasure
public void renderTreasure(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics) -
renderKimbeMarker
public void renderKimbeMarker(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics) -
renderPointer
public void renderPointer(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, org.joml.Matrix3x2fStack poseStack, float partialTick) -
keyReleased
public boolean keyReleased(net.minecraft.client.input.KeyEvent event) - Specified by:
keyReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyReleasedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseReleased
public boolean mouseReleased(net.minecraft.client.input.MouseButtonEvent event) - Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseClicked
public boolean mouseClicked(net.minecraft.client.input.MouseButtonEvent event, boolean doubleClick) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
keyPressed
public boolean keyPressed(net.minecraft.client.input.KeyEvent event) - Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyPressedin interfacenet.minecraft.client.gui.components.events.GuiEventListener- Overrides:
keyPressedin classnet.minecraft.client.gui.screens.Screen
-
inputPressed
public void inputPressed() -
getPointerPosPrecise
public float getPointerPosPrecise() -
doDegreesOverlapWithLeeway
public static boolean doDegreesOverlapWithLeeway(float degrees1, float degrees2, int leeway) -
tick
public void tick()- Overrides:
tickin classnet.minecraft.client.gui.screens.Screen
-
onClose
public void onClose()- Overrides:
onClosein classnet.minecraft.client.gui.screens.Screen
-
addParticles
public void addParticles(float posInDegrees, int count, int color) -
renderPoseCentered
public static void renderPoseCentered(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.resources.Identifier texture, int spriteSize, int color) Renders a texture centered to the top left corner, to be moved with poseStack -
renderPoseCentered
public static void renderPoseCentered(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.resources.Identifier texture, int spriteSize) -
renderPoseCentered
public static void renderPoseCentered(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.resources.Identifier texture, int spriteWidth, int spriteHeight, int uOffset, int vOffset, int textureSize, int color) -
renderPoseCentered
public static void renderPoseCentered(net.minecraft.client.gui.GuiGraphicsExtractor guiGraphics, net.minecraft.resources.Identifier texture, int spriteWidth, int spriteHeight, int uOffset, int vOffset, int textureSize) -
isHoldingInput
public boolean isHoldingInput() -
hasDistantHorizons
public static boolean hasDistantHorizons() -
isSettingsScreen
public boolean isSettingsScreen() -
clampPos
public static int clampPos(int pos) -
getModifiers
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classnet.minecraft.client.gui.screens.Screen
-
refreshSweetSpotsAlphas
public void refreshSweetSpotsAlphas() -
removeAllSweetSpots
public void removeAllSweetSpots()
-