diff options
author | Keuin <[email protected]> | 2021-01-15 00:59:00 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-01-15 00:59:00 +0800 |
commit | fd033b1204c30771a571897a3219866bb31394d3 (patch) | |
tree | d3f8c1c5ed05a3635bdc1d96fb0933aac07de60f /src/main/java/com/keuin/ohmyvanillamc/OmvmConfiguration.java | |
parent | 75f26f4ed9011e9dd12f5b49b26b94f8f4dacac1 (diff) |
Version 1.4.1: add switch for fixing EntityTrackerEntry spamming. Improve option list.
Diffstat (limited to 'src/main/java/com/keuin/ohmyvanillamc/OmvmConfiguration.java')
-rw-r--r-- | src/main/java/com/keuin/ohmyvanillamc/OmvmConfiguration.java | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/src/main/java/com/keuin/ohmyvanillamc/OmvmConfiguration.java b/src/main/java/com/keuin/ohmyvanillamc/OmvmConfiguration.java index 4992f9b..41bfeb2 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/OmvmConfiguration.java +++ b/src/main/java/com/keuin/ohmyvanillamc/OmvmConfiguration.java @@ -4,18 +4,32 @@ import java.util.Objects; public class OmvmConfiguration { + private final boolean fixEntityTrackerEntrySpamming; private final boolean disableFishSchooling; private final boolean disablePhantomSpawning; private final boolean disableWanderingTraderSpawning; private final boolean reintroduceLlamaItemDuplicating; - public OmvmConfiguration(boolean disableFishSchooling, boolean disablePhantomSpawning, boolean disableWanderingTraderSpawning, boolean reintroduceLlamaItemDuplicating) { + public OmvmConfiguration() { + fixEntityTrackerEntrySpamming = true; + disableFishSchooling = false; + disablePhantomSpawning = false; + disableWanderingTraderSpawning = false; + reintroduceLlamaItemDuplicating = false; + } + + public OmvmConfiguration(boolean fixEntityTrackerEntrySpamming, boolean disableFishSchooling, boolean disablePhantomSpawning, boolean disableWanderingTraderSpawning, boolean reintroduceLlamaItemDuplicating) { + this.fixEntityTrackerEntrySpamming = fixEntityTrackerEntrySpamming; this.disableFishSchooling = disableFishSchooling; this.disablePhantomSpawning = disablePhantomSpawning; this.disableWanderingTraderSpawning = disableWanderingTraderSpawning; this.reintroduceLlamaItemDuplicating = reintroduceLlamaItemDuplicating; } + public boolean isFixEntityTrackerEntrySpamming() { + return fixEntityTrackerEntrySpamming; + } + public boolean isDisableFishSchooling() { return disableFishSchooling; } @@ -37,7 +51,8 @@ public class OmvmConfiguration { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; OmvmConfiguration that = (OmvmConfiguration) o; - return disableFishSchooling == that.disableFishSchooling && + return fixEntityTrackerEntrySpamming == that.fixEntityTrackerEntrySpamming && + disableFishSchooling == that.disableFishSchooling && disablePhantomSpawning == that.disablePhantomSpawning && disableWanderingTraderSpawning == that.disableWanderingTraderSpawning && reintroduceLlamaItemDuplicating == that.reintroduceLlamaItemDuplicating; @@ -45,14 +60,17 @@ public class OmvmConfiguration { @Override public int hashCode() { - return Objects.hash(disableFishSchooling, disablePhantomSpawning, disableWanderingTraderSpawning, reintroduceLlamaItemDuplicating); + return Objects.hash(fixEntityTrackerEntrySpamming, disableFishSchooling, disablePhantomSpawning, disableWanderingTraderSpawning, reintroduceLlamaItemDuplicating); } @Override public String toString() { - return "Disable Fish Schooling: " + disableFishSchooling + "\n" + - "Disable Phantom Spawning: " + disablePhantomSpawning + "\n" + - "Disable Wandering Trader Spawning: " + disableWanderingTraderSpawning + "\n" + - "Reintroduce Llama Item Duplicating: " + reintroduceLlamaItemDuplicating; + String s = ""; + s += "(BugFix) Fix Entity Tracker Entry Spamming: " + fixEntityTrackerEntrySpamming + "\n"; + s += "(Optimization) Disable Fish Schooling: " + disableFishSchooling + "\n"; + s += "(Exotic Feature) Disable Phantom Spawning: " + disablePhantomSpawning + "\n"; + s += "(Exotic Feature) Disable Wandering Trader Spawning: " + disableWanderingTraderSpawning + "\n"; + s += "(Obsolete Vanilla Feature) Reintroduce Llama Item Duplicating: " + reintroduceLlamaItemDuplicating; + return s; } } |