diff options
author | Keuin <[email protected]> | 2021-02-19 13:23:46 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2021-02-19 17:30:04 +0800 |
commit | 1678ef3eb724e97e7815f1411c5c55c6fd1138b6 (patch) | |
tree | 3d963e147ee490786251386e52cb29f0390f8ee8 /src/main/java/com/keuin/ohmyvanillamc/config/OmvmConfiguration.java | |
parent | 50c35e926fe3abea73695b9f9ba65e6041e81d3b (diff) |
Diffstat (limited to 'src/main/java/com/keuin/ohmyvanillamc/config/OmvmConfiguration.java')
-rw-r--r-- | src/main/java/com/keuin/ohmyvanillamc/config/OmvmConfiguration.java | 84 |
1 files changed, 77 insertions, 7 deletions
diff --git a/src/main/java/com/keuin/ohmyvanillamc/config/OmvmConfiguration.java b/src/main/java/com/keuin/ohmyvanillamc/config/OmvmConfiguration.java index 70ce1a7..8f95b15 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/config/OmvmConfiguration.java +++ b/src/main/java/com/keuin/ohmyvanillamc/config/OmvmConfiguration.java @@ -10,9 +10,14 @@ public class OmvmConfiguration { private boolean disableWanderingTraderSpawning; private boolean reintroduceLlamaItemDuplicating; private boolean reintroduceZeroTickFarm; + private boolean enableStemForceRipening; + private boolean enableBambooForceRipening; + private boolean enableCactusForceRipening; + private boolean enableChorusFlowerForceRipening; + private boolean enableSugarCaneForceRipening; public OmvmConfiguration() { - this(true, false, false, false, false, false); + this(true, false, false, false, false, false, true, true, true, true, true); } public OmvmConfiguration(OmvmConfiguration omvmConfiguration) { @@ -22,15 +27,30 @@ public class OmvmConfiguration { this.disableWanderingTraderSpawning = omvmConfiguration.disableWanderingTraderSpawning; this.reintroduceLlamaItemDuplicating = omvmConfiguration.reintroduceLlamaItemDuplicating; this.reintroduceZeroTickFarm = omvmConfiguration.reintroduceZeroTickFarm; - } - - public OmvmConfiguration(boolean fixEntityTrackerEntrySpamming, boolean disableFishSchooling, boolean disablePhantomSpawning, boolean disableWanderingTraderSpawning, boolean reintroduceLlamaItemDuplicating, boolean reintroduceZeroTickFarm) { + this.enableStemForceRipening = omvmConfiguration.enableStemForceRipening; + this.enableBambooForceRipening = omvmConfiguration.enableBambooForceRipening; + this.enableCactusForceRipening = omvmConfiguration.enableCactusForceRipening; + this.enableChorusFlowerForceRipening = omvmConfiguration.enableChorusFlowerForceRipening; + this.enableSugarCaneForceRipening = omvmConfiguration.enableSugarCaneForceRipening; + } + + public OmvmConfiguration(boolean fixEntityTrackerEntrySpamming, boolean disableFishSchooling + , boolean disablePhantomSpawning, boolean disableWanderingTraderSpawning + , boolean reintroduceLlamaItemDuplicating, boolean reintroduceZeroTickFarm + , boolean enableStemForceRipening, boolean enableBambooForceRipening + , boolean enableCactusForceRipening, boolean enableChorusFlowerForceRipening + , boolean enableSugarCaneForceRipening) { this.fixEntityTrackerEntrySpamming = fixEntityTrackerEntrySpamming; this.disableFishSchooling = disableFishSchooling; this.disablePhantomSpawning = disablePhantomSpawning; this.disableWanderingTraderSpawning = disableWanderingTraderSpawning; this.reintroduceLlamaItemDuplicating = reintroduceLlamaItemDuplicating; this.reintroduceZeroTickFarm = reintroduceZeroTickFarm; + this.enableStemForceRipening = enableStemForceRipening; + this.enableBambooForceRipening = enableBambooForceRipening; + this.enableCactusForceRipening = enableCactusForceRipening; + this.enableChorusFlowerForceRipening = enableChorusFlowerForceRipening; + this.enableSugarCaneForceRipening = enableSugarCaneForceRipening; } public boolean isFixEntityTrackerEntrySpamming() { @@ -57,6 +77,46 @@ public class OmvmConfiguration { return reintroduceZeroTickFarm; } + public boolean isEnableStemForceRipening() { + return enableStemForceRipening; + } + + public void setEnableStemForceRipening(boolean enableStemForceRipening) { + this.enableStemForceRipening = enableStemForceRipening; + } + + public boolean isEnableBambooForceRipening() { + return enableBambooForceRipening; + } + + public void setEnableBambooForceRipening(boolean enableBambooForceRipening) { + this.enableBambooForceRipening = enableBambooForceRipening; + } + + public boolean isEnableCactusForceRipening() { + return enableCactusForceRipening; + } + + public void setEnableCactusForceRipening(boolean enableCactusForceRipening) { + this.enableCactusForceRipening = enableCactusForceRipening; + } + + public boolean isEnableChorusFlowerForceRipening() { + return enableChorusFlowerForceRipening; + } + + public void setEnableChorusFlowerForceRipening(boolean enableChorusFlowerForceRipening) { + this.enableChorusFlowerForceRipening = enableChorusFlowerForceRipening; + } + + public boolean isEnableSugarCaneForceRipening() { + return enableSugarCaneForceRipening; + } + + public void setEnableSugarCaneForceRipening(boolean enableSugarCaneForceRipening) { + this.enableSugarCaneForceRipening = enableSugarCaneForceRipening; + } + public void setFixEntityTrackerEntrySpamming(boolean fixEntityTrackerEntrySpamming) { this.fixEntityTrackerEntrySpamming = fixEntityTrackerEntrySpamming; } @@ -91,12 +151,17 @@ public class OmvmConfiguration { disablePhantomSpawning == that.disablePhantomSpawning && disableWanderingTraderSpawning == that.disableWanderingTraderSpawning && reintroduceLlamaItemDuplicating == that.reintroduceLlamaItemDuplicating && - reintroduceZeroTickFarm == that.reintroduceZeroTickFarm; + reintroduceZeroTickFarm == that.reintroduceZeroTickFarm && + enableStemForceRipening == that.enableStemForceRipening && + enableBambooForceRipening == that.enableBambooForceRipening && + enableCactusForceRipening == that.enableCactusForceRipening && + enableChorusFlowerForceRipening == that.enableChorusFlowerForceRipening && + enableSugarCaneForceRipening == that.enableSugarCaneForceRipening; } @Override public int hashCode() { - return Objects.hash(fixEntityTrackerEntrySpamming, disableFishSchooling, disablePhantomSpawning, disableWanderingTraderSpawning, reintroduceLlamaItemDuplicating, reintroduceZeroTickFarm); + return Objects.hash(fixEntityTrackerEntrySpamming, disableFishSchooling, disablePhantomSpawning, disableWanderingTraderSpawning, reintroduceLlamaItemDuplicating, reintroduceZeroTickFarm, enableStemForceRipening, enableBambooForceRipening, enableCactusForceRipening, enableChorusFlowerForceRipening, enableSugarCaneForceRipening); } @Override @@ -107,7 +172,12 @@ public class OmvmConfiguration { 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 + "\n"; - s += "(Obsolete Vanilla Feature) Reintroduce 0-tick Plants Farm: " + reintroduceZeroTickFarm; + s += "(Obsolete Vanilla Feature) Reintroduce 0-tick Plants Farm: " + reintroduceZeroTickFarm + "\n"; + s += "(Zero Tick Farm) Enable Stem Force Ripening: " + enableStemForceRipening + "\n"; + s += "(Zero Tick Farm) Enable Bamboo Force Ripening: " + enableBambooForceRipening + "\n"; + s += "(Zero Tick Farm) Enable Cactus Force Ripening: " + enableCactusForceRipening + "\n"; + s += "(Zero Tick Farm) Enable Chorus Flower Force Ripening: " + enableCactusForceRipening + "\n"; + s += "(Zero Tick Farm) Enable Sugar Cane Force Ripening: " + enableSugarCaneForceRipening + "\n"; return s; } } |