Refactored some config stuff and removed annotations
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* This file is part of the Distant Horizons mod (formerly the LOD Mod),
|
||||
* licensed under the GNU LGPL v3 License.
|
||||
*
|
||||
* Copyright (C) 2020-2022 James Seibel
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.seibel.lod.core.config;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
/**
|
||||
* Will be removed soon so please keep this out
|
||||
*
|
||||
* @author coolGi
|
||||
* @version 02-07-2022
|
||||
*/
|
||||
@Deprecated
|
||||
public class ConfigAnnotations {
|
||||
/** For making categories */
|
||||
@Deprecated
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
/** Use com.seibel.lod.core.config.types.ConfigCategory instead of this */
|
||||
public @interface Category {}
|
||||
|
||||
|
||||
/**
|
||||
* Makes text (looks like normal entry but doesn't save and has no button)
|
||||
*
|
||||
* Accepts string and the text is the value
|
||||
*/
|
||||
@Deprecated
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
public @interface Comment {}
|
||||
|
||||
/**
|
||||
* Adds a comment to the file,
|
||||
* This should only be used in special cases where comments from an entry cant reach
|
||||
*
|
||||
* Accepts string and the text is the value
|
||||
*/
|
||||
@Deprecated
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@Target(ElementType.FIELD)
|
||||
public @interface FileComment {}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.seibel.lod.core.config.types;
|
||||
|
||||
import com.seibel.lod.core.config.ConfigEntryAppearance;
|
||||
import com.seibel.lod.core.config.types.ConfigEntryAppearance;
|
||||
|
||||
/**
|
||||
* The class where all config options should extend
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package com.seibel.lod.core.config.types;
|
||||
|
||||
import com.seibel.lod.core.config.ConfigEntryAppearance;
|
||||
import com.seibel.lod.core.config.types.ConfigEntryAppearance;
|
||||
|
||||
public class ConfigCategory extends AbstractConfigType<Class, ConfigCategory> {
|
||||
public String destination; // Where the category goes to
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.seibel.lod.core.config.types;
|
||||
|
||||
import com.seibel.lod.core.config.ConfigBase;
|
||||
import com.seibel.lod.core.config.ConfigEntryAppearance;
|
||||
import com.seibel.lod.core.config.types.ConfigEntryAppearance;
|
||||
import com.seibel.lod.core.config.file.ConfigFileHandling;
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package com.seibel.lod.core.config;
|
||||
package com.seibel.lod.core.config.types;
|
||||
|
||||
public enum ConfigEntryAppearance {
|
||||
ALL(true, true),
|
||||
Reference in New Issue
Block a user