forked from hannibal002/SkyHanni
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Golden Fish Timer (hannibal002#1941)
Co-authored-by: Cal <[email protected]> Co-authored-by: hannibal2 <[email protected]> Co-authored-by: ItsEmpa <[email protected]>
- Loading branch information
1 parent
9acb6e8
commit d6c9b63
Showing
11 changed files
with
437 additions
and
28 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
...va/at/hannibal2/skyhanni/config/features/fishing/trophyfishing/GoldenFishTimerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package at.hannibal2.skyhanni.config.features.fishing.trophyfishing; | ||
|
||
import at.hannibal2.skyhanni.config.FeatureToggle; | ||
import at.hannibal2.skyhanni.config.core.config.Position; | ||
import com.google.gson.annotations.Expose; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; | ||
|
||
public class GoldenFishTimerConfig { | ||
|
||
@Expose | ||
@ConfigOption(name = "Enabled", desc = "Enable the Golden Fish Timer.") | ||
@ConfigEditorBoolean | ||
@FeatureToggle | ||
public boolean enabled = true; | ||
|
||
@Expose | ||
@ConfigOption(name = "Nametag", desc = "Show a nametag on the Golden Fish showing how weak it is and when it will despawn.") | ||
@ConfigEditorBoolean | ||
public boolean nametag = true; | ||
|
||
@Expose | ||
@ConfigOption(name = "Highlight when ready", desc = "Highlight the Golden Fish when it is ready to be caught.") | ||
@ConfigEditorBoolean | ||
public boolean highlight = true; | ||
|
||
@Expose | ||
@ConfigOption(name = "Throw Rod Warning", desc = "Show a warning when you are close to the time limit of throwing your rod.") | ||
@ConfigEditorBoolean | ||
public boolean throwRodWarning = false; | ||
|
||
@Expose | ||
@ConfigOption(name = "Show Head", desc = "Show the Golden Fish head in the Golden Fish Timer GUI.") | ||
@ConfigEditorBoolean | ||
public boolean showHead = true; | ||
|
||
@Expose | ||
@ConfigOption(name = "Throw Rod Warning Time", desc = "The time in seconds before the throw rod warning appears.") | ||
@ConfigEditorSlider(minValue = 1, maxValue = 60, minStep = 1) | ||
public int throwRodWarningTime = 20; | ||
|
||
@Expose | ||
@ConfigLink(owner = GoldenFishTimerConfig.class, field = "enabled") | ||
public Position position = new Position(50, 80); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/java/at/hannibal2/skyhanni/events/FishingBobberInLiquidEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package at.hannibal2.skyhanni.events | ||
|
||
import net.minecraft.entity.projectile.EntityFishHook | ||
|
||
class FishingBobberInLiquidEvent(val bobber: EntityFishHook, val onWater: Boolean) : LorenzEvent() |
3 changes: 0 additions & 3 deletions
3
src/main/java/at/hannibal2/skyhanni/events/FishingBobberInWaterEvent.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.