From fdc068f6bbfcfcf8fcd69b918d0e5417575d9a1e Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 20 May 2022 00:54:18 +0200 Subject: [PATCH] Prepared Custom WorldPreset UI --- .../bclib/mixin/common/PresetEditorMixin.java | 23 ++++ .../betterx/bclib/presets/WorldPresets.java | 10 +- .../resources/assets/bclib/lang/de_de.json | 108 ++++++++--------- .../resources/assets/bclib/lang/en_us.json | 111 +++++++++--------- src/main/resources/bclib.mixins.common.json | 106 ++++++++--------- 5 files changed, 190 insertions(+), 168 deletions(-) create mode 100644 src/main/java/org/betterx/bclib/mixin/common/PresetEditorMixin.java diff --git a/src/main/java/org/betterx/bclib/mixin/common/PresetEditorMixin.java b/src/main/java/org/betterx/bclib/mixin/common/PresetEditorMixin.java new file mode 100644 index 00000000..ce0c59de --- /dev/null +++ b/src/main/java/org/betterx/bclib/mixin/common/PresetEditorMixin.java @@ -0,0 +1,23 @@ +package org.betterx.bclib.mixin.common; + +import net.minecraft.client.gui.screens.worldselection.PresetEditor; + +import com.google.common.collect.Maps; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Redirect; + +import java.util.Map; + + +@Mixin(PresetEditor.class) +interface PresetEditorMixin { + @Redirect(method = "", at = @At(value = "INVOKE", target = "Ljava/util/Map;of(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/Map;")) + private static Map bcl_foo(K k1, V v1, K k2, V v2) { + Map a = Maps.newHashMap(); + a.put(k1, v1); + a.put(k2, v2); + return a; + } + +} \ No newline at end of file diff --git a/src/main/java/org/betterx/bclib/presets/WorldPresets.java b/src/main/java/org/betterx/bclib/presets/WorldPresets.java index ebfd7def..dc46a94b 100644 --- a/src/main/java/org/betterx/bclib/presets/WorldPresets.java +++ b/src/main/java/org/betterx/bclib/presets/WorldPresets.java @@ -1,5 +1,6 @@ package org.betterx.bclib.presets; +import net.minecraft.client.gui.screens.worldselection.PresetEditor; import net.minecraft.core.Registry; import net.minecraft.data.BuiltinRegistries; import net.minecraft.resources.ResourceKey; @@ -10,10 +11,13 @@ import net.minecraft.world.level.levelgen.presets.WorldPreset; import org.betterx.bclib.BCLib; import org.betterx.bclib.api.tag.TagAPI; import org.betterx.bclib.api.tag.TagType; +import org.betterx.bclib.gui.modmenu.MainScreen; + +import java.util.Optional; public class WorldPresets { public static TagType.Simple WORLD_PRESETS = - TagAPI.registerType(BuiltinRegistries.WORLD_PRESET, "tag/worldgen/world_preset"); + TagAPI.registerType(BuiltinRegistries.WORLD_PRESET, "tags/worldgen/world_preset"); public static ResourceKey BCL_WORLD = register(BCLib.makeID("normal")); @@ -21,6 +25,10 @@ public class WorldPresets { ResourceKey key = ResourceKey.create(Registry.WORLD_PRESET_REGISTRY, loc); WORLD_PRESETS.addUntyped(WorldPresetTags.NORMAL, key.location()); + + PresetEditor.EDITORS.put(Optional.of(key), + (createWorldScreen, worldCreationContext) -> new MainScreen(createWorldScreen)); + return key; } diff --git a/src/main/resources/assets/bclib/lang/de_de.json b/src/main/resources/assets/bclib/lang/de_de.json index 5038c9bf..450b8e20 100644 --- a/src/main/resources/assets/bclib/lang/de_de.json +++ b/src/main/resources/assets/bclib/lang/de_de.json @@ -1,58 +1,54 @@ { - "message.bclib.anvil_damage": "§cSchaden", - "bclib.datafixer.backupWarning.title": "Der Wächter hat eine inkompatible Welt entdeckt", - "bclib.datafixer.backupWarning.message": "Der Wächter hat festgestellt, dass einige Mod Änderungen an der Welt durchführen müssen.\n\nDiese Änderungen können automatische angewendet werden. Wenn Du fortfährst ohne die Änderungen anzuwenden, kann dies zu Fehlern oder Abstürzen führen. Bevor du fortfährst sollte auf jedenfall ein Backup angelegt werden.", - "bclib.datafixer.backupWarning.backup": "Backup erstellen bevor die Reperaturen angewendet werden", - "bclib.datafixer.backupWarning.nofixes": "Weiter ohne Reperaturen", - "bclib.datafixer.backupWarning.fix": "Reperaturen Anwenden", - "title.bclib.bclibmissmatch": "Versionsunterschied", - "message.bclib.bclibmissmatch": "Die Version von BCLib auf dem Server und dem Client sind unterschiedlich. Dies kann Probleme verursachen.\n\nSoll die passende Version von BCLib vom Server auf diese Maschine kopiert werden? \n\nDazu wird die aktuell installierte Version von BCLib im Mods-Verzeichnis in einen Unterordner verschoben und die Version vom Server installiert.", - "title.bclib.syncfiles": "Inkonsistente Daten", - "message.bclib.syncfiles": "Einige Daten (Konfigurationen, Mods, ...) sind unterschiedlich.\nSollen die unten ausgewählten Inhalte vom Server auf diese Maschine kopieren?", - "message.bclib.syncfiles.mods": "Mods synchronisieren", - "message.bclib.syncfiles.configs": "Einstellungen synchronisieren", - "message.bclib.syncfiles.folders": "Dateien und Ordner synchronisieren", - "message.bclib.syncfiles.delete": "Unnötige löschen", - "title.bclib.confirmrestart": "Neustart erforderlich", - "message.bclib.confirmrestart": "Die angeforderten Inhalte wurden erfolgreich übertragen. Minecraft muss nun neu gestartet werden.", - "title.link.bclib.discord": "Discord", - "title.bclib.modmenu.main": "BCLib Einstellungen", - "title.bclib.progress": "Fortschritt", - "title.bclib.filesync.progress": "Datenübertragung", - "message.bclib.filesync.progress": "Snychronisiere Dateien und Verzeichnise vom Server", - "message.bclib.filesync.progress.stage.empty": "", - - "title.config.bclib.client.auto_sync.enabled": "Auto-Sync Aktivieren", - "title.config.bclib.client.auto_sync.acceptConfigs": "Konfiguration von Server annehmen", - "title.config.bclib.client.auto_sync.acceptFiles": "Dateien von Server annehmen", - "title.config.bclib.client.auto_sync.acceptMods": "Mods von Server annehmen", - "title.config.bclib.client.auto_sync.displayModInfo": "Warnung anzeigen, wenn Mods auf Server/Client unterschiedlich", - "title.config.bclib.client.auto_sync.debugHashes": "Erweiterete Logausgabe für Auto-Sync", - - "title.config.bclib.generator.options.useOldBiomeGenerator": "Alten 1.17 Biome Generator verwenden", - "title.config.bclib.main.patches.applyPatches": "Automatisches Anwenden von Patches beim Laden eines Levels", - "title.config.bclib.main.patches.repairBiomesOnLoad": "Biomesource beim Laden eines Levels reparieren", - "title.config.bclib.client.ui.suppressExperimentalDialogOnLoad": "Experimenteller Warnbildschirm beim Laden deaktivieren", - - "title.bclib.syncfiles.modInfo": "Mod Info", - "title.bclib.syncfiles.modlist": "Mod Information", - "message.bclib.syncfiles.modlist": "Im Folgenden wird der Status deiner installierten Mods angezeigt.\n\nAlle Mods, die lokal nicht vorhanden sind oder eine andere Version auf dem Server haben, werden synchronisiert.", - "title.bclib.modmissmatch": "Mod-Konflikt", - "message.bclib.modmissmatch": "Einige Mods auf diesem Rechner stimmen nicht mit der Version auf dem Server überein.\n\nNicht übereinstimmende Mods können zu merkwürdigem Spielverhalten oder Abstürzen führen. Bitte stellen Sie sicher, dass Sie die gleichen Mods wie auf dem Server verwenden.", - - "message.bclib.datafixer.progress.waitbackup": "Ich warte auf das Ende der Sicherung. Dies kann eine Weile dauern!", - "message.bclib.datafixer.progress.reading": "Lese Daten", - "message.bclib.datafixer.progress.players": "Repariere Spieler", - "message.bclib.datafixer.progress.level": "Patches auf level.dat anwenden", - "message.bclib.datafixer.progress.worlddata": "Benutzerdefinierte Weltdaten patchen", - "message.bclib.datafixer.progress.regions": "Alle Regionen reparieren", - "message.bclib.datafixer.progress.saving": "Patch-Status speichern", - "title.bclib.datafixer.progress": "Welt in Ordnung bringen", - "message.bclib.datafixer.progress": "Anwenden aller Änderungen", - "title.bclib.datafixer.error": "Fehler beim Reparieren der Welt", - "message.bclib.datafixer.error": "Es gab Fehler beim Reparieren der Welt. Das bedeutet, dass dieser Level wahrscheinlich in einem inkonsistenten Zustand ist und Sie ihn nicht spielen sollten. Bitte stellen Sie Ihr Backup wieder her und beheben Sie die unten aufgeführten Fehler, bevor Sie es erneut versuchen.", - "title.bclib.datafixer.error.continue": "Continue and Mark as Fixed", - "title.config.bclib.main.ui.suppressExperimentalDialogOnLoad": "Disable Experimental Warning Screen on Load", - - "tooltip.bclib.place_on": "Lebt auf: %s" + "message.bclib.anvil_damage": "§cSchaden", + "bclib.datafixer.backupWarning.title": "Der Wächter hat eine inkompatible Welt entdeckt", + "bclib.datafixer.backupWarning.message": "Der Wächter hat festgestellt, dass einige Mod Änderungen an der Welt durchführen müssen.\n\nDiese Änderungen können automatische angewendet werden. Wenn Du fortfährst ohne die Änderungen anzuwenden, kann dies zu Fehlern oder Abstürzen führen. Bevor du fortfährst sollte auf jedenfall ein Backup angelegt werden.", + "bclib.datafixer.backupWarning.backup": "Backup erstellen bevor die Reperaturen angewendet werden", + "bclib.datafixer.backupWarning.nofixes": "Weiter ohne Reperaturen", + "bclib.datafixer.backupWarning.fix": "Reperaturen Anwenden", + "title.bclib.bclibmissmatch": "Versionsunterschied", + "message.bclib.bclibmissmatch": "Die Version von BCLib auf dem Server und dem Client sind unterschiedlich. Dies kann Probleme verursachen.\n\nSoll die passende Version von BCLib vom Server auf diese Maschine kopiert werden? \n\nDazu wird die aktuell installierte Version von BCLib im Mods-Verzeichnis in einen Unterordner verschoben und die Version vom Server installiert.", + "title.bclib.syncfiles": "Inkonsistente Daten", + "message.bclib.syncfiles": "Einige Daten (Konfigurationen, Mods, ...) sind unterschiedlich.\nSollen die unten ausgewählten Inhalte vom Server auf diese Maschine kopieren?", + "message.bclib.syncfiles.mods": "Mods synchronisieren", + "message.bclib.syncfiles.configs": "Einstellungen synchronisieren", + "message.bclib.syncfiles.folders": "Dateien und Ordner synchronisieren", + "message.bclib.syncfiles.delete": "Unnötige löschen", + "title.bclib.confirmrestart": "Neustart erforderlich", + "message.bclib.confirmrestart": "Die angeforderten Inhalte wurden erfolgreich übertragen. Minecraft muss nun neu gestartet werden.", + "title.link.bclib.discord": "Discord", + "title.bclib.modmenu.main": "BCLib Einstellungen", + "title.bclib.progress": "Fortschritt", + "title.bclib.filesync.progress": "Datenübertragung", + "message.bclib.filesync.progress": "Snychronisiere Dateien und Verzeichnise vom Server", + "message.bclib.filesync.progress.stage.empty": "", + "title.config.bclib.client.auto_sync.enabled": "Auto-Sync Aktivieren", + "title.config.bclib.client.auto_sync.acceptConfigs": "Konfiguration von Server annehmen", + "title.config.bclib.client.auto_sync.acceptFiles": "Dateien von Server annehmen", + "title.config.bclib.client.auto_sync.acceptMods": "Mods von Server annehmen", + "title.config.bclib.client.auto_sync.displayModInfo": "Warnung anzeigen, wenn Mods auf Server/Client unterschiedlich", + "title.config.bclib.client.auto_sync.debugHashes": "Erweiterete Logausgabe für Auto-Sync", + "title.config.bclib.generator.options.useOldBiomeGenerator": "Alten 1.17 Biome Generator verwenden", + "title.config.bclib.main.patches.applyPatches": "Automatisches Anwenden von Patches beim Laden eines Levels", + "title.config.bclib.main.patches.repairBiomesOnLoad": "Biomesource beim Laden eines Levels reparieren", + "title.config.bclib.client.ui.suppressExperimentalDialogOnLoad": "Experimenteller Warnbildschirm beim Laden deaktivieren", + "title.bclib.syncfiles.modInfo": "Mod Info", + "title.bclib.syncfiles.modlist": "Mod Information", + "message.bclib.syncfiles.modlist": "Im Folgenden wird der Status deiner installierten Mods angezeigt.\n\nAlle Mods, die lokal nicht vorhanden sind oder eine andere Version auf dem Server haben, werden synchronisiert.", + "title.bclib.modmissmatch": "Mod-Konflikt", + "message.bclib.modmissmatch": "Einige Mods auf diesem Rechner stimmen nicht mit der Version auf dem Server überein.\n\nNicht übereinstimmende Mods können zu merkwürdigem Spielverhalten oder Abstürzen führen. Bitte stellen Sie sicher, dass Sie die gleichen Mods wie auf dem Server verwenden.", + "message.bclib.datafixer.progress.waitbackup": "Ich warte auf das Ende der Sicherung. Dies kann eine Weile dauern!", + "message.bclib.datafixer.progress.reading": "Lese Daten", + "message.bclib.datafixer.progress.players": "Repariere Spieler", + "message.bclib.datafixer.progress.level": "Patches auf level.dat anwenden", + "message.bclib.datafixer.progress.worlddata": "Benutzerdefinierte Weltdaten patchen", + "message.bclib.datafixer.progress.regions": "Alle Regionen reparieren", + "message.bclib.datafixer.progress.saving": "Patch-Status speichern", + "title.bclib.datafixer.progress": "Welt in Ordnung bringen", + "message.bclib.datafixer.progress": "Anwenden aller Änderungen", + "title.bclib.datafixer.error": "Fehler beim Reparieren der Welt", + "message.bclib.datafixer.error": "Es gab Fehler beim Reparieren der Welt. Das bedeutet, dass dieser Level wahrscheinlich in einem inkonsistenten Zustand ist und Sie ihn nicht spielen sollten. Bitte stellen Sie Ihr Backup wieder her und beheben Sie die unten aufgeführten Fehler, bevor Sie es erneut versuchen.", + "title.bclib.datafixer.error.continue": "Continue and Mark as Fixed", + "title.config.bclib.main.ui.suppressExperimentalDialogOnLoad": "Disable Experimental Warning Screen on Load", + "tooltip.bclib.place_on": "Lebt auf: %s", + "generator.bclib.normal": "BetterX" } \ No newline at end of file diff --git a/src/main/resources/assets/bclib/lang/en_us.json b/src/main/resources/assets/bclib/lang/en_us.json index 977e7f06..43df52e3 100644 --- a/src/main/resources/assets/bclib/lang/en_us.json +++ b/src/main/resources/assets/bclib/lang/en_us.json @@ -1,60 +1,55 @@ { - "message.bclib.anvil_damage": "§cDamage", - "bclib.datafixer.backupWarning.title": "Guardian detected an incompatible World", - "bclib.datafixer.backupWarning.message": "The Guardian detected, that the internals some installed Mods did change since this world was last played.\n\nWe can automatically change the world for you. If you continue without applying the changes the world may not load correct. Before you continue, you should create a Backup.", - "bclib.datafixer.backupWarning.backup": "Create Backup before applying Fixes", - "bclib.datafixer.backupWarning.nofixes": "Continue Without Fixes", - "bclib.datafixer.backupWarning.fix": "Apply Fixes", - "title.bclib.bclibmissmatch": "Version Mismatch", - "message.bclib.bclibmissmatch": "The Version of BCLib on the server and this client do not match. This will cause problems when playing.\n\nDo you want to automatically download the BCLib-Version from the server? \n\nBCLib will move the old version into a subdirectory of your Mods-Folder and before installing the new one.", - "title.bclib.syncfiles": "Mismatching Data", - "message.bclib.syncfiles": "Some Content on the Server does not match the versions on the client.\nDo you want to replace the selected content with the data from the server?", - "message.bclib.syncfiles.mods": "Synchronize Mods", - "message.bclib.syncfiles.configs": "Synchronize Configs", - "message.bclib.syncfiles.folders": "Synchronize Folders and Files", - "message.bclib.syncfiles.delete": "Delete unneeded", - "title.bclib.confirmrestart": "Restart Required", - "message.bclib.confirmrestart": "The requested content was synchronized. You need to restart Minecraft now.", - "title.link.bclib.discord": "Discord", - "title.bclib.modmenu.main": "BCLib Settings", - "title.bclib.progress": "Progress", - "title.bclib.filesync.progress": "File Transfer", - "message.bclib.filesync.progress": "Syncing File-Content with Server", - "message.bclib.filesync.progress.stage.empty": "", - - "title.config.bclib.client.auto_sync.enabled": "Enable Auto-Sync", - "title.config.bclib.client.auto_sync.acceptConfigs": "Accept incoming Config Files", - "title.config.bclib.client.auto_sync.acceptFiles": "Accept incoming Files", - "title.config.bclib.client.auto_sync.acceptMods": "Accept incoming Mods", - "title.config.bclib.client.auto_sync.displayModInfo": "Display warning when Serverside Mods differ from Client", - "title.config.bclib.client.auto_sync.debugHashes": "Print Auto-Sync Debug-Hashes to Log", - - "title.config.bclib.generator.options.useOldBiomeGenerator": "Use legacy 1.17 Biome Generator", - "title.config.bclib.main.patches.applyPatches": "Automatically apply patches when loading level", - "title.config.bclib.main.patches.repairBiomesOnLoad": "Fix Biomesource on level load", - "title.config.bclib.client.ui.suppressExperimentalDialogOnLoad": "Disable Experimental Warning Screen on Load", - - "title.bclib.syncfiles.modInfo": "Mod Info", - "title.bclib.syncfiles.modlist": "Mod Information", - "message.bclib.syncfiles.modlist": "The following shows the state of your installed installed Mods.\n\nAll Mods that do not exist locally, or have a different version on the Server will be synchronized.", - "title.bclib.modmissmatch": "Mod Version Conflict", - "message.bclib.modmissmatch": "Some Mods on this client do not match the version of Mods on the Server.\n\nMismatching Mods can result in odd game behavior or crashes. Please make sue that you use the same mods as the server.", - - "message.bclib.datafixer.progress.waitbackup": "Waiting for Backup to finish. This may take a while!", - "message.bclib.datafixer.progress.reading": "Reading Data", - "message.bclib.datafixer.progress.players": "Fixing Players", - "message.bclib.datafixer.progress.level": "Applying Patches to level.dat", - "message.bclib.datafixer.progress.worlddata": "Patching Custom World-Data", - "message.bclib.datafixer.progress.regions": "Repairing all Regions", - "message.bclib.datafixer.progress.saving": "Saving Patch State", - "title.bclib.datafixer.progress": "Fixing World", - "message.bclib.datafixer.progress": "Applying all Patches to your World.", - "title.bclib.datafixer.error": "Errors while fixing World", - "message.bclib.datafixer.error": "There were errors while repairing the world. This means that this level is probably in an inconsistent state and you should not play it. Please restore your backup and fix the errors below before trying again.", - "title.bclib.datafixer.error.continue": "Proceed and mark as fixed", - - "title.config.bclib.client.rendering.customFogRendering": "Custom Fog Rendering", - "title.config.bclib.client.rendering.netherThickFog": "Nether Thick Fog", - - "tooltip.bclib.place_on": "Survives on: %s" + "message.bclib.anvil_damage": "§cDamage", + "bclib.datafixer.backupWarning.title": "Guardian detected an incompatible World", + "bclib.datafixer.backupWarning.message": "The Guardian detected, that the internals some installed Mods did change since this world was last played.\n\nWe can automatically change the world for you. If you continue without applying the changes the world may not load correct. Before you continue, you should create a Backup.", + "bclib.datafixer.backupWarning.backup": "Create Backup before applying Fixes", + "bclib.datafixer.backupWarning.nofixes": "Continue Without Fixes", + "bclib.datafixer.backupWarning.fix": "Apply Fixes", + "title.bclib.bclibmissmatch": "Version Mismatch", + "message.bclib.bclibmissmatch": "The Version of BCLib on the server and this client do not match. This will cause problems when playing.\n\nDo you want to automatically download the BCLib-Version from the server? \n\nBCLib will move the old version into a subdirectory of your Mods-Folder and before installing the new one.", + "title.bclib.syncfiles": "Mismatching Data", + "message.bclib.syncfiles": "Some Content on the Server does not match the versions on the client.\nDo you want to replace the selected content with the data from the server?", + "message.bclib.syncfiles.mods": "Synchronize Mods", + "message.bclib.syncfiles.configs": "Synchronize Configs", + "message.bclib.syncfiles.folders": "Synchronize Folders and Files", + "message.bclib.syncfiles.delete": "Delete unneeded", + "title.bclib.confirmrestart": "Restart Required", + "message.bclib.confirmrestart": "The requested content was synchronized. You need to restart Minecraft now.", + "title.link.bclib.discord": "Discord", + "title.bclib.modmenu.main": "BCLib Settings", + "title.bclib.progress": "Progress", + "title.bclib.filesync.progress": "File Transfer", + "message.bclib.filesync.progress": "Syncing File-Content with Server", + "message.bclib.filesync.progress.stage.empty": "", + "title.config.bclib.client.auto_sync.enabled": "Enable Auto-Sync", + "title.config.bclib.client.auto_sync.acceptConfigs": "Accept incoming Config Files", + "title.config.bclib.client.auto_sync.acceptFiles": "Accept incoming Files", + "title.config.bclib.client.auto_sync.acceptMods": "Accept incoming Mods", + "title.config.bclib.client.auto_sync.displayModInfo": "Display warning when Serverside Mods differ from Client", + "title.config.bclib.client.auto_sync.debugHashes": "Print Auto-Sync Debug-Hashes to Log", + "title.config.bclib.generator.options.useOldBiomeGenerator": "Use legacy 1.17 Biome Generator", + "title.config.bclib.main.patches.applyPatches": "Automatically apply patches when loading level", + "title.config.bclib.main.patches.repairBiomesOnLoad": "Fix Biomesource on level load", + "title.config.bclib.client.ui.suppressExperimentalDialogOnLoad": "Disable Experimental Warning Screen on Load", + "title.bclib.syncfiles.modInfo": "Mod Info", + "title.bclib.syncfiles.modlist": "Mod Information", + "message.bclib.syncfiles.modlist": "The following shows the state of your installed installed Mods.\n\nAll Mods that do not exist locally, or have a different version on the Server will be synchronized.", + "title.bclib.modmissmatch": "Mod Version Conflict", + "message.bclib.modmissmatch": "Some Mods on this client do not match the version of Mods on the Server.\n\nMismatching Mods can result in odd game behavior or crashes. Please make sue that you use the same mods as the server.", + "message.bclib.datafixer.progress.waitbackup": "Waiting for Backup to finish. This may take a while!", + "message.bclib.datafixer.progress.reading": "Reading Data", + "message.bclib.datafixer.progress.players": "Fixing Players", + "message.bclib.datafixer.progress.level": "Applying Patches to level.dat", + "message.bclib.datafixer.progress.worlddata": "Patching Custom World-Data", + "message.bclib.datafixer.progress.regions": "Repairing all Regions", + "message.bclib.datafixer.progress.saving": "Saving Patch State", + "title.bclib.datafixer.progress": "Fixing World", + "message.bclib.datafixer.progress": "Applying all Patches to your World.", + "title.bclib.datafixer.error": "Errors while fixing World", + "message.bclib.datafixer.error": "There were errors while repairing the world. This means that this level is probably in an inconsistent state and you should not play it. Please restore your backup and fix the errors below before trying again.", + "title.bclib.datafixer.error.continue": "Proceed and mark as fixed", + "title.config.bclib.client.rendering.customFogRendering": "Custom Fog Rendering", + "title.config.bclib.client.rendering.netherThickFog": "Nether Thick Fog", + "tooltip.bclib.place_on": "Survives on: %s", + "generator.bclib.normal": "BetterX" } \ No newline at end of file diff --git a/src/main/resources/bclib.mixins.common.json b/src/main/resources/bclib.mixins.common.json index e65d98f7..0cea37ae 100644 --- a/src/main/resources/bclib.mixins.common.json +++ b/src/main/resources/bclib.mixins.common.json @@ -1,55 +1,55 @@ { - "required": true, - "minVersion": "0.8", - "package": "org.betterx.bclib.mixin.common", - "compatibilityLevel": "JAVA_17", - "mixins": [ - "BiomeMixin", - "BiomeGenerationSettingsAccessor", - "shears.DiggingEnchantmentMixin", - "shears.ItemPredicateBuilderMixin", - "LayerLightSectionStorageMixin", - "NoiseBasedChunkGeneratorMixin", - "NoiseGeneratorSettingsMixin", - "SurfaceRulesContextAccessor", - "EnchantingTableBlockMixin", - "shears.TripWireBlockMixin", - "StructuresAccessor", - "MobSpawnSettingsAccessor", - "shears.BeehiveBlockMixin", - "shears.PumpkinBlockMixin", - "shears.MushroomCowMixin", - "ComposterBlockAccessor", - "PotionBrewingAccessor", - "RecipeManagerAccessor", - "shears.SnowGolemMixin", - "MinecraftServerMixin", - "NetherBiomeDataMixin", - "PistonBaseBlockMixin", - "TheEndBiomeDataMixin", - "BlockStateBaseMixin", - "ChunkGeneratorMixin", - "WorldGenRegionMixin", - "DiggerItemAccessor", - "RecipeManagerMixin", - "RecipeManagerMixin", - "ShovelItemAccessor", - "BoneMealItemMixin", - "CraftingMenuMixin", - "shears.SheepMixin", - "PortalShapeMixin", - "ServerLevelMixin", - "BiomeSourceMixin", - "AnvilBlockMixin", - "AnvilMenuMixin", - "ItemStackMixin", - "TagLoaderMixin", - "MainMixin", - "WorldPresetsBootstrapMixin", - "WorldOpenFlowsMixin", - "WorldGenPropertiesMixin" - ], - "injectors": { - "defaultRequire": 1 - } + "required": true, + "minVersion": "0.8", + "package": "org.betterx.bclib.mixin.common", + "compatibilityLevel": "JAVA_17", + "mixins": [ + "AnvilBlockMixin", + "AnvilMenuMixin", + "BiomeGenerationSettingsAccessor", + "BiomeMixin", + "BiomeSourceMixin", + "BlockStateBaseMixin", + "BoneMealItemMixin", + "ChunkGeneratorMixin", + "ComposterBlockAccessor", + "CraftingMenuMixin", + "DiggerItemAccessor", + "EnchantingTableBlockMixin", + "ItemStackMixin", + "LayerLightSectionStorageMixin", + "MainMixin", + "MinecraftServerMixin", + "MobSpawnSettingsAccessor", + "NetherBiomeDataMixin", + "NoiseBasedChunkGeneratorMixin", + "NoiseGeneratorSettingsMixin", + "PistonBaseBlockMixin", + "PortalShapeMixin", + "PotionBrewingAccessor", + "PresetEditorMixin", + "RecipeManagerAccessor", + "RecipeManagerMixin", + "ServerLevelMixin", + "ShovelItemAccessor", + "StructuresAccessor", + "SurfaceRulesContextAccessor", + "TagLoaderMixin", + "TheEndBiomeDataMixin", + "WorldGenPropertiesMixin", + "WorldGenRegionMixin", + "WorldOpenFlowsMixin", + "WorldPresetsBootstrapMixin", + "shears.BeehiveBlockMixin", + "shears.DiggingEnchantmentMixin", + "shears.ItemPredicateBuilderMixin", + "shears.MushroomCowMixin", + "shears.PumpkinBlockMixin", + "shears.SheepMixin", + "shears.SnowGolemMixin", + "shears.TripWireBlockMixin" + ], + "injectors": { + "defaultRequire": 1 + } }