bunch of defaults

This commit is contained in:
CocoTheOwner 2021-08-16 23:47:29 +02:00
parent 6d363235a5
commit e3948eb4ba
2 changed files with 9 additions and 9 deletions

View File

@ -82,11 +82,11 @@ public class DecIris implements DecreeExecutor
@Decree(description = "Set aura spins") @Decree(description = "Set aura spins")
public void aura( public void aura(
@Param(description = "The h color value") @Param(description = "The h color value", defaultValue = "-20")
int h, int h,
@Param(description = "The s color value") @Param(description = "The s color value", defaultValue = "7")
int s, int s,
@Param(description = "The b color value") @Param(description = "The b color value", defaultValue = "8")
int b int b
) { ) {
IrisSettings.get().getGeneral().setSpinh(h); IrisSettings.get().getGeneral().setSpinh(h);
@ -135,7 +135,7 @@ public class DecIris implements DecreeExecutor
String pack, String pack,
@Param(name = "branch", description = "The branch to download from", defaultValue = "master") @Param(name = "branch", description = "The branch to download from", defaultValue = "master")
String branch, String branch,
@Param(name = "trim", description = "Whether or not to download a trimmed version (do not enable when you're going to edit)") @Param(name = "trim", description = "Whether or not to download a trimmed version (do not enable when editing)", defaultValue = "false")
boolean trim, boolean trim,
@Param(name = "overwrite", description = "Whether or not to overwrite the pack with the downloaded one", aliases = "force", defaultValue = "false") @Param(name = "overwrite", description = "Whether or not to overwrite the pack with the downloaded one", aliases = "force", defaultValue = "false")
boolean overwrite boolean overwrite

View File

@ -318,9 +318,9 @@ public class DecStudio implements DecreeExecutor {
@Decree(description = "Find any biome or region", aliases = {"goto", "g"}, origin = DecreeOrigin.PLAYER) @Decree(description = "Find any biome or region", aliases = {"goto", "g"}, origin = DecreeOrigin.PLAYER)
public void find( public void find(
@Param(description = "The biome to find") @Param(description = "The biome to find", contextual = true)
IrisBiome biome, IrisBiome biome,
@Param(description = "The region to find") @Param(description = "The region to find", contextual = true)
IrisRegion region IrisRegion region
){ ){
if (!IrisToolbelt.isIrisWorld(world())){ if (!IrisToolbelt.isIrisWorld(world())){
@ -424,7 +424,7 @@ public class DecStudio implements DecreeExecutor {
@Decree(description = "Package a dimension into a compressed format", aliases = "package") @Decree(description = "Package a dimension into a compressed format", aliases = "package")
public void pkg( public void pkg(
@Param(name = "dimension", description = "The dimension pack to compress", contextual = true) @Param(name = "dimension", description = "The dimension pack to compress", contextual = true, defaultValue = "overworld")
IrisDimension dimension, IrisDimension dimension,
@Param(name = "obfuscate", description = "Whether or not to obfuscate the pack", defaultValue = "false") @Param(name = "obfuscate", description = "Whether or not to obfuscate the pack", defaultValue = "false")
boolean obfuscate, boolean obfuscate,
@ -436,7 +436,7 @@ public class DecStudio implements DecreeExecutor {
@Decree(description = "Profiles the performance of a dimension", origin = DecreeOrigin.PLAYER) @Decree(description = "Profiles the performance of a dimension", origin = DecreeOrigin.PLAYER)
public void profile( public void profile(
@Param(description = "The dimension to profile", contextual = true) @Param(description = "The dimension to profile", contextual = true, defaultValue = "overworld")
IrisDimension dimension IrisDimension dimension
){ ){
File pack = dimension.getLoadFile().getParentFile().getParentFile(); File pack = dimension.getLoadFile().getParentFile().getParentFile();
@ -658,7 +658,7 @@ public class DecStudio implements DecreeExecutor {
@Decree(description = "Update your dimension project") @Decree(description = "Update your dimension project")
public void update( public void update(
@Param(description = "The dimension to update the workspace of", contextual = true) @Param(description = "The dimension to update the workspace of", contextual = true, defaultValue = "overworld")
IrisDimension dimension IrisDimension dimension
){ ){
if (new IrisProject(dimension.getLoadFile().getParentFile().getParentFile()).updateWorkspace()) { if (new IrisProject(dimension.getLoadFile().getParentFile().getParentFile()).updateWorkspace()) {