From 01a421b73234c91939e305ec6fdb87d058f784ba Mon Sep 17 00:00:00 2001 From: Julian Krings Date: Sun, 21 Sep 2025 22:35:34 +0200 Subject: [PATCH] add file extensions to the script property descriptions --- .../java/com/volmit/iris/core/loader/IrisRegistrant.java | 2 +- .../java/com/volmit/iris/engine/object/IrisDimension.java | 6 +++--- .../com/volmit/iris/engine/object/IrisDimensionMode.java | 2 +- .../main/java/com/volmit/iris/engine/object/IrisEntity.java | 4 ++-- .../com/volmit/iris/engine/object/IrisGeneratorStyle.java | 2 +- .../com/volmit/iris/engine/object/IrisPreProcessors.java | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/core/src/main/java/com/volmit/iris/core/loader/IrisRegistrant.java b/core/src/main/java/com/volmit/iris/core/loader/IrisRegistrant.java index 8dd218916..b20ac02d4 100644 --- a/core/src/main/java/com/volmit/iris/core/loader/IrisRegistrant.java +++ b/core/src/main/java/com/volmit/iris/core/loader/IrisRegistrant.java @@ -35,7 +35,7 @@ import java.io.File; @Data public abstract class IrisRegistrant { - @Desc("Preprocess this object in-memory when it's loaded, run scripts using the variable 'Iris.getPreprocessorObject()' and modify properties about this object before it's used.") + @Desc("Preprocess this object in-memory when it's loaded, run scripts using the variable 'object' and modify properties about this object before it's used.\nFile extension: .prox.kts") @RegistryListResource(IrisScript.class) @ArrayType(min = 1, type = String.class) private KList preprocessors = new KList<>(); diff --git a/core/src/main/java/com/volmit/iris/engine/object/IrisDimension.java b/core/src/main/java/com/volmit/iris/engine/object/IrisDimension.java index 03e730c9a..ef4842056 100644 --- a/core/src/main/java/com/volmit/iris/engine/object/IrisDimension.java +++ b/core/src/main/java/com/volmit/iris/engine/object/IrisDimension.java @@ -249,15 +249,15 @@ public class IrisDimension extends IrisRegistrant { @Desc("A list of globally applied pre-processors") @ArrayType(type = IrisPreProcessors.class) private KList globalPreProcessors = new KList<>(); - @Desc("A list of scripts executed on engine setup") + @Desc("A list of scripts executed on engine setup\nFile extension: .engine.kts") @RegistryListResource(IrisScript.class) @ArrayType(type = String.class, min = 1) private KList engineScripts = new KList<>(); - @Desc("A list of scripts executed on data setup") + @Desc("A list of scripts executed on data setup\nFile extension: .data.kts") @RegistryListResource(IrisScript.class) @ArrayType(type = String.class, min = 1) private KList dataScripts = new KList<>(); - @Desc("A list of scripts executed on chunk update") + @Desc("A list of scripts executed on chunk update\nFile extension: .update.kts") @RegistryListResource(IrisScript.class) @ArrayType(type = String.class, min = 1) private KList chunkUpdateScripts = new KList<>(); diff --git a/core/src/main/java/com/volmit/iris/engine/object/IrisDimensionMode.java b/core/src/main/java/com/volmit/iris/engine/object/IrisDimensionMode.java index 07b0e252b..a57e78f08 100644 --- a/core/src/main/java/com/volmit/iris/engine/object/IrisDimensionMode.java +++ b/core/src/main/java/com/volmit/iris/engine/object/IrisDimensionMode.java @@ -39,7 +39,7 @@ public class IrisDimensionMode { private IrisDimensionModeType type = IrisDimensionModeType.OVERWORLD; @RegistryListResource(IrisScript.class) - @Desc("The script to create the dimension mode instead of using provided types") + @Desc("The script to create the dimension mode instead of using provided types\nFile extension: .engine.kts") private String script; public EngineMode create(Engine engine) { diff --git a/core/src/main/java/com/volmit/iris/engine/object/IrisEntity.java b/core/src/main/java/com/volmit/iris/engine/object/IrisEntity.java index a1f51863f..10803f1bf 100644 --- a/core/src/main/java/com/volmit/iris/engine/object/IrisEntity.java +++ b/core/src/main/java/com/volmit/iris/engine/object/IrisEntity.java @@ -166,12 +166,12 @@ public class IrisEntity extends IrisRegistrant { @Desc("Set to true if you want to apply all of the settings here to the mob, even though an external plugin has already done so. Scripts are always applied.") private boolean applySettingsToCustomMobAnyways = false; - @Desc("Set the entity type to UNKNOWN, then define a script here which ends with the entity variable (the result). You can use Iris.getLocation() to find the target location. You can spawn any entity this way.") + @Desc("Set the entity type to UNKNOWN, then define a script here which ends with the entity variable (the result). You can use location to find the target location. You can spawn any entity this way.\nFile extension: .spawn.kts") @RegistryListResource(IrisScript.class) private String spawnerScript = ""; @ArrayType(min = 1, type = String.class) - @Desc("Set the entity type to UNKNOWN, then define a script here. You can use Iris.getLocation() to find the target location. You can spawn any entity this way.") + @Desc("Executed post spawn you can modify the entity however you want with it\nFile extension: .postspawn.kts") @RegistryListResource(IrisScript.class) private KList postSpawnScripts = new KList<>(); diff --git a/core/src/main/java/com/volmit/iris/engine/object/IrisGeneratorStyle.java b/core/src/main/java/com/volmit/iris/engine/object/IrisGeneratorStyle.java index 7f7ae9f47..2e9996d6e 100644 --- a/core/src/main/java/com/volmit/iris/engine/object/IrisGeneratorStyle.java +++ b/core/src/main/java/com/volmit/iris/engine/object/IrisGeneratorStyle.java @@ -58,7 +58,7 @@ public class IrisGeneratorStyle { private String expression = null; @Desc("Use an Image map instead of a generated value") private IrisImageMap imageMap = null; - @Desc("Instead of using the style property, use a custom noise generator to represent this style.") + @Desc("Instead of using the style property, use a custom noise generator to represent this style.\nFile extension: .noise.kts") @RegistryListResource(IrisScript.class) private String script = null; @MinNumber(0.00001) diff --git a/core/src/main/java/com/volmit/iris/engine/object/IrisPreProcessors.java b/core/src/main/java/com/volmit/iris/engine/object/IrisPreProcessors.java index fb62a9d78..294e22636 100644 --- a/core/src/main/java/com/volmit/iris/engine/object/IrisPreProcessors.java +++ b/core/src/main/java/com/volmit/iris/engine/object/IrisPreProcessors.java @@ -18,7 +18,7 @@ public class IrisPreProcessors { private String type = "dimension"; @Required - @Desc("The preprocessor scripts") + @Desc("The preprocessor scripts\nFile extension: .proc.kts") @RegistryListResource(IrisScript.class) @ArrayType(type = String.class, min = 1) private KList scripts = new KList<>();