mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
@Range
This commit is contained in:
parent
283351fea5
commit
42a65ac924
@ -243,7 +243,7 @@ public class RegionCommands extends MethodCommands {
|
|||||||
@Arg(desc = "The pattern of blocks to place")
|
@Arg(desc = "The pattern of blocks to place")
|
||||||
Pattern pattern,
|
Pattern pattern,
|
||||||
@Arg(desc = "The thickness of the line", def = "0")
|
@Arg(desc = "The thickness of the line", def = "0")
|
||||||
int thickness,
|
@Range(min = 0) int thickness,
|
||||||
@Switch(name = 'h', desc = "Generate only a shell")
|
@Switch(name = 'h', desc = "Generate only a shell")
|
||||||
boolean shell) throws WorldEditException {
|
boolean shell) throws WorldEditException {
|
||||||
if (!(region instanceof CuboidRegion)) {
|
if (!(region instanceof CuboidRegion)) {
|
||||||
@ -273,7 +273,7 @@ public class RegionCommands extends MethodCommands {
|
|||||||
@Arg(desc = "The pattern of blocks to place")
|
@Arg(desc = "The pattern of blocks to place")
|
||||||
Pattern pattern,
|
Pattern pattern,
|
||||||
@Arg(desc = "The thickness of the curve", def = "0")
|
@Arg(desc = "The thickness of the curve", def = "0")
|
||||||
int thickness,
|
@Range(min = 0) int thickness,
|
||||||
@Switch(name = 'h', desc = "Generate only a shell")
|
@Switch(name = 'h', desc = "Generate only a shell")
|
||||||
boolean shell, InjectedValueAccess context) throws WorldEditException {
|
boolean shell, InjectedValueAccess context) throws WorldEditException {
|
||||||
if (!(region instanceof ConvexPolyhedralRegion)) {
|
if (!(region instanceof ConvexPolyhedralRegion)) {
|
||||||
@ -718,7 +718,7 @@ public class RegionCommands extends MethodCommands {
|
|||||||
public void hollow(FawePlayer player, EditSession editSession,
|
public void hollow(FawePlayer player, EditSession editSession,
|
||||||
@Selection Region region,
|
@Selection Region region,
|
||||||
@Arg(desc = "Thickness of the shell to leave", def = "0")
|
@Arg(desc = "Thickness of the shell to leave", def = "0")
|
||||||
int thickness,
|
@Range(min = 0) int thickness,
|
||||||
@Arg(desc = "The pattern of blocks to replace the hollowed area with", def = "air")
|
@Arg(desc = "The pattern of blocks to replace the hollowed area with", def = "air")
|
||||||
Pattern pattern,
|
Pattern pattern,
|
||||||
@Switch(name='m', desc = "Mask to hollow with") Mask mask,
|
@Switch(name='m', desc = "Mask to hollow with") Mask mask,
|
||||||
|
@ -769,7 +769,7 @@ public class UtilityCommands {
|
|||||||
return page;
|
return page;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int getFiles(File dir, Actor actor, InjectedValueAccess args, @org.jetbrains.annotations.Range(from = 0, to = ) int page, int perPage, String formatName, boolean playerFolder, Consumer<File> forEachFile) {
|
public static int getFiles(File dir, Actor actor, InjectedValueAccess args, @Range(min = 0) int page, int perPage, String formatName, boolean playerFolder, Consumer<File> forEachFile) {
|
||||||
Consumer<File> rootFunction = forEachFile;
|
Consumer<File> rootFunction = forEachFile;
|
||||||
//schem list all <path>
|
//schem list all <path>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user