mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-19 15:09:18 +00:00
add file extensions to the script property descriptions
This commit is contained in:
@@ -35,7 +35,7 @@ import java.io.File;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public abstract class IrisRegistrant {
|
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)
|
@RegistryListResource(IrisScript.class)
|
||||||
@ArrayType(min = 1, type = String.class)
|
@ArrayType(min = 1, type = String.class)
|
||||||
private KList<String> preprocessors = new KList<>();
|
private KList<String> preprocessors = new KList<>();
|
||||||
|
|||||||
@@ -249,15 +249,15 @@ public class IrisDimension extends IrisRegistrant {
|
|||||||
@Desc("A list of globally applied pre-processors")
|
@Desc("A list of globally applied pre-processors")
|
||||||
@ArrayType(type = IrisPreProcessors.class)
|
@ArrayType(type = IrisPreProcessors.class)
|
||||||
private KList<IrisPreProcessors> globalPreProcessors = new KList<>();
|
private KList<IrisPreProcessors> 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)
|
@RegistryListResource(IrisScript.class)
|
||||||
@ArrayType(type = String.class, min = 1)
|
@ArrayType(type = String.class, min = 1)
|
||||||
private KList<String> engineScripts = new KList<>();
|
private KList<String> 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)
|
@RegistryListResource(IrisScript.class)
|
||||||
@ArrayType(type = String.class, min = 1)
|
@ArrayType(type = String.class, min = 1)
|
||||||
private KList<String> dataScripts = new KList<>();
|
private KList<String> 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)
|
@RegistryListResource(IrisScript.class)
|
||||||
@ArrayType(type = String.class, min = 1)
|
@ArrayType(type = String.class, min = 1)
|
||||||
private KList<String> chunkUpdateScripts = new KList<>();
|
private KList<String> chunkUpdateScripts = new KList<>();
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ public class IrisDimensionMode {
|
|||||||
private IrisDimensionModeType type = IrisDimensionModeType.OVERWORLD;
|
private IrisDimensionModeType type = IrisDimensionModeType.OVERWORLD;
|
||||||
|
|
||||||
@RegistryListResource(IrisScript.class)
|
@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;
|
private String script;
|
||||||
|
|
||||||
public EngineMode create(Engine engine) {
|
public EngineMode create(Engine engine) {
|
||||||
|
|||||||
@@ -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.")
|
@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;
|
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)
|
@RegistryListResource(IrisScript.class)
|
||||||
private String spawnerScript = "";
|
private String spawnerScript = "";
|
||||||
|
|
||||||
@ArrayType(min = 1, type = String.class)
|
@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)
|
@RegistryListResource(IrisScript.class)
|
||||||
private KList<String> postSpawnScripts = new KList<>();
|
private KList<String> postSpawnScripts = new KList<>();
|
||||||
|
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ public class IrisGeneratorStyle {
|
|||||||
private String expression = null;
|
private String expression = null;
|
||||||
@Desc("Use an Image map instead of a generated value")
|
@Desc("Use an Image map instead of a generated value")
|
||||||
private IrisImageMap imageMap = null;
|
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)
|
@RegistryListResource(IrisScript.class)
|
||||||
private String script = null;
|
private String script = null;
|
||||||
@MinNumber(0.00001)
|
@MinNumber(0.00001)
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ public class IrisPreProcessors {
|
|||||||
private String type = "dimension";
|
private String type = "dimension";
|
||||||
|
|
||||||
@Required
|
@Required
|
||||||
@Desc("The preprocessor scripts")
|
@Desc("The preprocessor scripts\nFile extension: .proc.kts")
|
||||||
@RegistryListResource(IrisScript.class)
|
@RegistryListResource(IrisScript.class)
|
||||||
@ArrayType(type = String.class, min = 1)
|
@ArrayType(type = String.class, min = 1)
|
||||||
private KList<String> scripts = new KList<>();
|
private KList<String> scripts = new KList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user