Skip to content

Commit 01a421b

Browse files
committed
add file extensions to the script property descriptions
1 parent ae92bcf commit 01a421b

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

core/src/main/java/com/volmit/iris/core/loader/IrisRegistrant.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
@Data
3737
public abstract class IrisRegistrant {
38-
@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.")
38+
@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")
3939
@RegistryListResource(IrisScript.class)
4040
@ArrayType(min = 1, type = String.class)
4141
private KList<String> preprocessors = new KList<>();

core/src/main/java/com/volmit/iris/engine/object/IrisDimension.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,15 +249,15 @@ public class IrisDimension extends IrisRegistrant {
249249
@Desc("A list of globally applied pre-processors")
250250
@ArrayType(type = IrisPreProcessors.class)
251251
private KList<IrisPreProcessors> globalPreProcessors = new KList<>();
252-
@Desc("A list of scripts executed on engine setup")
252+
@Desc("A list of scripts executed on engine setup\nFile extension: .engine.kts")
253253
@RegistryListResource(IrisScript.class)
254254
@ArrayType(type = String.class, min = 1)
255255
private KList<String> engineScripts = new KList<>();
256-
@Desc("A list of scripts executed on data setup")
256+
@Desc("A list of scripts executed on data setup\nFile extension: .data.kts")
257257
@RegistryListResource(IrisScript.class)
258258
@ArrayType(type = String.class, min = 1)
259259
private KList<String> dataScripts = new KList<>();
260-
@Desc("A list of scripts executed on chunk update")
260+
@Desc("A list of scripts executed on chunk update\nFile extension: .update.kts")
261261
@RegistryListResource(IrisScript.class)
262262
@ArrayType(type = String.class, min = 1)
263263
private KList<String> chunkUpdateScripts = new KList<>();

core/src/main/java/com/volmit/iris/engine/object/IrisDimensionMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class IrisDimensionMode {
3939
private IrisDimensionModeType type = IrisDimensionModeType.OVERWORLD;
4040

4141
@RegistryListResource(IrisScript.class)
42-
@Desc("The script to create the dimension mode instead of using provided types")
42+
@Desc("The script to create the dimension mode instead of using provided types\nFile extension: .engine.kts")
4343
private String script;
4444

4545
public EngineMode create(Engine engine) {

core/src/main/java/com/volmit/iris/engine/object/IrisEntity.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,12 @@ public class IrisEntity extends IrisRegistrant {
166166
@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.")
167167
private boolean applySettingsToCustomMobAnyways = false;
168168

169-
@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.")
169+
@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")
170170
@RegistryListResource(IrisScript.class)
171171
private String spawnerScript = "";
172172

173173
@ArrayType(min = 1, type = String.class)
174-
@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.")
174+
@Desc("Executed post spawn you can modify the entity however you want with it\nFile extension: .postspawn.kts")
175175
@RegistryListResource(IrisScript.class)
176176
private KList<String> postSpawnScripts = new KList<>();
177177

core/src/main/java/com/volmit/iris/engine/object/IrisGeneratorStyle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class IrisGeneratorStyle {
5858
private String expression = null;
5959
@Desc("Use an Image map instead of a generated value")
6060
private IrisImageMap imageMap = null;
61-
@Desc("Instead of using the style property, use a custom noise generator to represent this style.")
61+
@Desc("Instead of using the style property, use a custom noise generator to represent this style.\nFile extension: .noise.kts")
6262
@RegistryListResource(IrisScript.class)
6363
private String script = null;
6464
@MinNumber(0.00001)

core/src/main/java/com/volmit/iris/engine/object/IrisPreProcessors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class IrisPreProcessors {
1818
private String type = "dimension";
1919

2020
@Required
21-
@Desc("The preprocessor scripts")
21+
@Desc("The preprocessor scripts\nFile extension: .proc.kts")
2222
@RegistryListResource(IrisScript.class)
2323
@ArrayType(type = String.class, min = 1)
2424
private KList<String> scripts = new KList<>();

0 commit comments

Comments
 (0)