mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Package + function
This commit is contained in:
parent
a471bfec6a
commit
12b1016d66
@ -363,6 +363,10 @@ public class ProjectManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public File compilePackage(VolmitSender sender, IrisDimension d, boolean obfuscate, boolean minify) {
|
||||||
|
return new IrisProject(new File(getWorkspaceFolder(), d.getName())).compilePackage(sender, obfuscate, minify);
|
||||||
|
}
|
||||||
|
|
||||||
public File compilePackage(VolmitSender sender, String d, boolean obfuscate, boolean minify) {
|
public File compilePackage(VolmitSender sender, String d, boolean obfuscate, boolean minify) {
|
||||||
return new IrisProject(new File(getWorkspaceFolder(), d)).compilePackage(sender, obfuscate, minify);
|
return new IrisProject(new File(getWorkspaceFolder(), d)).compilePackage(sender, obfuscate, minify);
|
||||||
}
|
}
|
||||||
|
@ -214,7 +214,19 @@ public class DecIrisStudio implements DecreeExecutor {
|
|||||||
success("Opening map!");
|
success("Opening map!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Decree(description = "Package a dimension into a compressed format", aliases = "package")
|
||||||
|
public void pkg(
|
||||||
|
@Param(name = "dimension", aliases = {"d", "dim"}, description = "The dimension pack to compress")
|
||||||
|
IrisDimension dimension,
|
||||||
|
@Param(name = "obfuscate", aliases = "o", description = "Whether or not to obfuscate the pack", defaultValue = "false")
|
||||||
|
boolean obfuscate,
|
||||||
|
@Param(name = "minify", aliases = "m", description = "Whether or not to minify the pack", defaultValue = "true")
|
||||||
|
boolean minify
|
||||||
|
){
|
||||||
|
J.a(() -> {
|
||||||
|
Iris.proj.compilePackage(sender(), dimension, obfuscate, minify);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return true if server GUIs are not enabled
|
* @return true if server GUIs are not enabled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user