-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf6d323
commit 4c392c6
Showing
13 changed files
with
382 additions
and
229 deletions.
There are no files selected for viewing
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
136 changes: 68 additions & 68 deletions
136
src/main/java/net/unladenswallow/minecraft/autofish/AutoFish.java
Large diffs are not rendered by default.
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
30 changes: 30 additions & 0 deletions
30
src/main/java/net/unladenswallow/minecraft/autofish/config/ConfigOption.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,30 @@ | ||
package net.unladenswallow.minecraft.autofish.config; | ||
|
||
import java.util.List; | ||
|
||
public class ConfigOption { | ||
public ConfigOption(List<String> path, boolean value, String label) { | ||
valueType = ValueType.BOOL; | ||
configPath = path; | ||
boolValue = value; | ||
configLabel = label; | ||
} | ||
|
||
public ConfigOption(List<String> path, int value, String label) { | ||
valueType = ValueType.INT; | ||
configPath = path; | ||
intValue = value; | ||
configLabel = label; | ||
} | ||
|
||
public enum ValueType { | ||
BOOL, | ||
INT | ||
} | ||
|
||
public ValueType valueType; | ||
public List<String> configPath; | ||
public boolean boolValue; | ||
public int intValue; | ||
public String configLabel; | ||
} |
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.