Refracted Config Internal Enums to its own package
This commit is contained in:
@@ -25,6 +25,12 @@ import com.seibel.lod.api.enums.rendering.*;
|
||||
import com.seibel.lod.api.enums.worldGeneration.EDhApiDistantGeneratorMode;
|
||||
import com.seibel.lod.core.config.eventHandlers.RenderCacheConfigEventHandler;
|
||||
import com.seibel.lod.core.config.types.*;
|
||||
import com.seibel.lod.core.config.types.enums.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.seibel.lod.core.config.types;
|
||||
|
||||
import com.seibel.lod.core.config.ConfigBase;
|
||||
import com.seibel.lod.core.config.types.enums.ConfigEntryAppearance;
|
||||
|
||||
/**
|
||||
* The class where all config options should extend
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
package com.seibel.lod.core.config.types;
|
||||
|
||||
import com.seibel.lod.core.config.types.enums.ConfigEntryAppearance;
|
||||
|
||||
/**
|
||||
* Adds a categoty to the config
|
||||
* See our config file for more information on how to use it
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.seibel.lod.core.config.types;
|
||||
|
||||
|
||||
import com.seibel.lod.core.config.listeners.IConfigListener;
|
||||
import com.seibel.lod.core.config.types.enums.*;
|
||||
import com.seibel.lod.coreapi.interfaces.config.IConfigEntry;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
@@ -1,28 +1,40 @@
|
||||
package com.seibel.lod.core.config.types;
|
||||
|
||||
import com.seibel.lod.core.config.types.enums.ConfigEntryAppearance;
|
||||
|
||||
/**
|
||||
* Adds something like a ConfigEntry but without a button to change the input
|
||||
*
|
||||
* @author coolGi
|
||||
*/
|
||||
public class ConfigUIComment extends AbstractConfigType<String, ConfigUIComment>{
|
||||
public ConfigUIComment(String value) {
|
||||
super(ConfigEntryAppearance.ONLY_SHOW, value); //TODO: Is the listener: null right?
|
||||
public ConfigUIComment() {
|
||||
super(ConfigEntryAppearance.ONLY_SHOW, "");
|
||||
}
|
||||
|
||||
/** Appearance shouldn't be changed */
|
||||
@Override
|
||||
public void setAppearance(ConfigEntryAppearance newAppearance) {
|
||||
return;
|
||||
}
|
||||
public void setAppearance(ConfigEntryAppearance newAppearance) {}
|
||||
|
||||
/** Pointless to set the value */
|
||||
@Override
|
||||
public void set(String newValue) {}
|
||||
|
||||
public static class Builder extends AbstractConfigType.Builder<String, Builder> {
|
||||
/** Appearance shouldn't be changed */
|
||||
@Override
|
||||
public Builder setAppearance(ConfigEntryAppearance newAppearance) {
|
||||
return this;
|
||||
}
|
||||
|
||||
/** Pointless to set the value */
|
||||
@Override
|
||||
public Builder set(String newValue) {
|
||||
return this;
|
||||
}
|
||||
|
||||
public ConfigUIComment build() {
|
||||
return new ConfigUIComment(tmpValue);
|
||||
return new ConfigUIComment();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.seibel.lod.core.config.types;
|
||||
package com.seibel.lod.core.config.types.enums;
|
||||
|
||||
/**
|
||||
* Allows options or categories to only be shown in the file or only in the ui
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.seibel.lod.core.config.types;
|
||||
package com.seibel.lod.core.config.types.enums;
|
||||
|
||||
/**
|
||||
* What is the performance impact of an entry
|
||||
Reference in New Issue
Block a user