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> intintfloatstatic final net.minecraft.resources.ResourceLocationintfloatfloatfloatfinal net.minecraft.world.InteractionHandfloatfinal intintintprotected booleanprotected booleanfinal net.minecraft.world.item.ItemStackfloatintfloatprotected final List<AbstractMinigameModifier> protected final List<AbstractMinigameModifier> floatfloatbooleanfloatfloatbooleanprotected final List<ActiveSweetSpot> final AbstractTackleSkinnet.minecraft.resources.ResourceLocationintbooleanfinal net.minecraft.world.item.ItemStackintintFields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, PANORAMA, renderables, screenExecutor, title, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
ConstructorsConstructorDescriptionFishingMinigameScreen(FishProperties fp, net.minecraft.world.item.ItemStack treasure, List<AbstractMinigameModifier> extraModifiers, AbstractTackleSkin tackleSkin) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddParticles(float posInDegrees, int count, int color) voidvoidstatic intclampPos(int pos) static booleandoDegreesOverlapWithLeeway(float degrees1, float degrees2, int leeway) floatintgetRandomFreePosition(int sizeOfTheSweetspotToPlace) static booleanvoidbooleanbooleanbooleanbooleankeyPressed(int keyCode, int scanCode, int keyModifiers) booleankeyReleased(int keyCode, int scanCode, int keyModifiers) booleanmouseClicked(double mouseX, double mouseY, int button) booleanmouseReleased(double mouseX, double mouseY, int button) booleanmouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) voidonClose()voidvoidvoidrenderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTickNeo) voidrenderCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int color, boolean shadow) voidrenderKimbeMarker(net.minecraft.client.gui.GuiGraphics guiGraphics) voidrenderPointer(net.minecraft.client.gui.GuiGraphics guiGraphics, com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTick) static voidrenderPoseCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texture, int spriteSize) Renders a texture centered to the top left corner, to be moved with poseStackstatic voidrenderPoseCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texture, int spriteWidth, int spriteHeight, int uOffset, int vOffset, int textureSize) voidrenderSweetSpot(ActiveSweetSpot ass, net.minecraft.client.gui.GuiGraphics guiGraphics, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack) voidrenderTreasure(net.minecraft.client.gui.GuiGraphics guiGraphics) voidtick()Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, onFilesDrop, rebuildWidgets, removed, removeWidget, render, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, resize, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatus, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, mouseDragged, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMovedMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
GOLD_OUTLINE
public static final net.minecraft.resources.ResourceLocation GOLD_OUTLINE -
texture
public net.minecraft.resources.ResourceLocation texture -
renderBlur
public boolean renderBlur -
difficulty
-
rarity
-
itemBeingFished
public final net.minecraft.world.item.ItemStack itemBeingFished -
treasureIS
public final net.minecraft.world.item.ItemStack treasureIS -
tackleSkin
-
handToSwing
public final net.minecraft.world.InteractionHand handToSwing -
hp
public int hp -
penalty
public float penalty -
decay
public float decay -
kimbeMarkerPos
public float kimbeMarkerPos -
kimbeMarkerAlpha
public float kimbeMarkerAlpha -
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 -
treasureActive
public boolean treasureActive -
treasureProgress
public int treasureProgress -
treasureProgressSmooth
public int treasureProgressSmooth -
modifierData
-
holdingDelay
public final int holdingDelay- See Also:
-
holdingTicks
public int holdingTicks -
isHoldingKey
protected boolean isHoldingKey -
isHoldingMouse
protected boolean isHoldingMouse -
activeSweetSpots
-
spotsToAdd
-
modifiers
-
modifiersToAdd
-
-
Constructor Details
-
FishingMinigameScreen
public FishingMinigameScreen(FishProperties fp, net.minecraft.world.item.ItemStack treasure, List<AbstractMinigameModifier> extraModifiers, AbstractTackleSkin tackleSkin)
-
-
Method Details
-
getActiveSweetSpots
-
addModifier
-
addUniqueModifier
-
addSweetSpot
-
getRandomFreePosition
public int getRandomFreePosition(int sizeOfTheSweetspotToPlace) -
renderBackground
public void renderBackground(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTickNeo) - Overrides:
renderBackgroundin classnet.minecraft.client.gui.screens.Screen
-
renderSweetSpot
public void renderSweetSpot(ActiveSweetSpot ass, net.minecraft.client.gui.GuiGraphics guiGraphics, float partialTick, com.mojang.blaze3d.vertex.PoseStack poseStack) -
renderTreasure
public void renderTreasure(net.minecraft.client.gui.GuiGraphics guiGraphics) -
renderKimbeMarker
public void renderKimbeMarker(net.minecraft.client.gui.GuiGraphics guiGraphics) -
renderPointer
public void renderPointer(net.minecraft.client.gui.GuiGraphics guiGraphics, com.mojang.blaze3d.vertex.PoseStack poseStack, float partialTick) -
keyReleased
public boolean keyReleased(int keyCode, int scanCode, int keyModifiers) - Specified by:
keyReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
keyReleasedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseScrolled
public boolean mouseScrolled(double mouseX, double mouseY, double scrollX, double scrollY) - Specified by:
mouseScrolledin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseScrolledin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseReleased
public boolean mouseReleased(double mouseX, double mouseY, int button) - Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseReleasedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int button) - Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.ContainerEventHandler- Specified by:
mouseClickedin interfacenet.minecraft.client.gui.components.events.GuiEventListener
-
keyPressed
public boolean keyPressed(int keyCode, int scanCode, int keyModifiers) - 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.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texture, int spriteSize) Renders a texture centered to the top left corner, to be moved with poseStack -
renderPoseCentered
public static void renderPoseCentered(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.resources.ResourceLocation texture, int spriteWidth, int spriteHeight, int uOffset, int vOffset, int textureSize) -
renderCenteredString
public void renderCenteredString(net.minecraft.client.gui.GuiGraphics guiGraphics, net.minecraft.client.gui.Font font, net.minecraft.network.chat.Component text, int x, int y, int color, boolean shadow) -
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()
-