Keys and envtype things

This commit is contained in:
SD 2021-03-29 22:42:30 +05:30
parent debdf5fd53
commit 771ecf680e
2 changed files with 8 additions and 1 deletions

View file

@ -21,6 +21,8 @@ import me.sargunvohra.mcmods.autoconfig1u.util.Utils;
import me.shedaniel.clothconfig2.gui.entries.SelectionListEntry;
import org.jetbrains.annotations.NotNull;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.EnvironmentInterface;
import net.fabricmc.fabric.api.resource.ResourcePackActivationType;
import static me.sargunvohra.mcmods.autoconfig1u.annotation.ConfigEntry.Gui.EnumHandler.EnumDisplayOption.*;
@ -133,6 +135,7 @@ public final class ModConfig implements ConfigData {
@Tooltip public double riftJitter = 1;
}
@EnvironmentInterface(value = EnvType.CLIENT, itf = SelectionListEntry.Translatable.class)
public enum ExtendedResourcePackActivationType implements SelectionListEntry.Translatable {
NORMAL(ResourcePackActivationType.NORMAL, "resourcePackActivationType.normal"),
DEFAULT_ENABLED(ResourcePackActivationType.DEFAULT_ENABLED, "resourcePackActivationType.defaultEnabled"),

View file

@ -344,5 +344,9 @@
"limbo.exit.eternal_fluid": "%1$s bathed in reality",
"limbo.exit.generic": "%1$s escaped Limbo",
"limbo.exit.rift": "%1$s found a rift leading out of Limbo"
"limbo.exit.rift": "%1$s found a rift leading out of Limbo",
"resourcePackActivationType.normal": "Normal",
"resourcePackActivationType.defaultEnabled": "Default Enabled",
"resourcePackActivationType.alwaysEnabled": "Always Enabled"
}