From c96ce10cdcf75cf642101b00cc9572304d276851 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 16 Jan 2021 15:34:15 +0800 Subject: Add runtime configuration editing command `/omvm set `. The set is temporary and will not be modified in disk. --- .../config/ImmutableOmvmConfiguration.java | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/main/java/com/keuin/ohmyvanillamc/config/ImmutableOmvmConfiguration.java (limited to 'src/main/java/com/keuin/ohmyvanillamc/config/ImmutableOmvmConfiguration.java') diff --git a/src/main/java/com/keuin/ohmyvanillamc/config/ImmutableOmvmConfiguration.java b/src/main/java/com/keuin/ohmyvanillamc/config/ImmutableOmvmConfiguration.java new file mode 100644 index 0000000..e5a34e1 --- /dev/null +++ b/src/main/java/com/keuin/ohmyvanillamc/config/ImmutableOmvmConfiguration.java @@ -0,0 +1,45 @@ +package com.keuin.ohmyvanillamc.config; + +public class ImmutableOmvmConfiguration extends OmvmConfiguration { + + public ImmutableOmvmConfiguration() { + } + + public ImmutableOmvmConfiguration(OmvmConfiguration omvmConfiguration) { + super(omvmConfiguration); + } + + public ImmutableOmvmConfiguration(boolean fixEntityTrackerEntrySpamming, boolean disableFishSchooling, boolean disablePhantomSpawning, boolean disableWanderingTraderSpawning, boolean reintroduceLlamaItemDuplicating, boolean reintroduceZeroTickFarm) { + super(fixEntityTrackerEntrySpamming, disableFishSchooling, disablePhantomSpawning, disableWanderingTraderSpawning, reintroduceLlamaItemDuplicating, reintroduceZeroTickFarm); + } + + @Override + public void setFixEntityTrackerEntrySpamming(boolean fixEntityTrackerEntrySpamming) { + throw new UnsupportedOperationException(); + } + + @Override + public void setDisableFishSchooling(boolean disableFishSchooling) { + throw new UnsupportedOperationException(); + } + + @Override + public void setDisablePhantomSpawning(boolean disablePhantomSpawning) { + throw new UnsupportedOperationException(); + } + + @Override + public void setDisableWanderingTraderSpawning(boolean disableWanderingTraderSpawning) { + throw new UnsupportedOperationException(); + } + + @Override + public void setReintroduceLlamaItemDuplicating(boolean reintroduceLlamaItemDuplicating) { + throw new UnsupportedOperationException(); + } + + @Override + public void setReintroduceZeroTickFarm(boolean reintroduceZeroTickFarm) { + throw new UnsupportedOperationException(); + } +} -- cgit v1.2.3