Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 19:02:36 +01:00
Fix some more arguments
Dieser Commit ist enthalten in:
Ursprung
88c946188b
Commit
1c90d2a341
@ -526,7 +526,7 @@ public class BrushCommands {
|
|||||||
desc = "Scatter a schematic on a surface"
|
desc = "Scatter a schematic on a surface"
|
||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.brush.populateschematic")
|
@CommandPermissions("worldedit.brush.populateschematic")
|
||||||
public void scatterSchemBrush(Player player, InjectedValueAccess context, Mask mask,
|
public void scatterSchemBrush(Player player, InjectedValueAccess context, @Arg(desc = "Mask") Mask mask,
|
||||||
@Arg(name = "clipboard", desc = "Clipboard uri") String clipboardStr,
|
@Arg(name = "clipboard", desc = "Clipboard uri") String clipboardStr,
|
||||||
@Arg(desc = "Expression", def = "30") Expression radius,
|
@Arg(desc = "Expression", def = "30") Expression radius,
|
||||||
@Arg(desc = "double", def = "50") double density,
|
@Arg(desc = "double", def = "50") double density,
|
||||||
|
@ -117,7 +117,7 @@ public class GenerationCommands {
|
|||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.generation.ore")
|
@CommandPermissions("worldedit.generation.ore")
|
||||||
@Logging(PLACEMENT)
|
@Logging(PLACEMENT)
|
||||||
public void ores(Actor actor, LocalSession session, EditSession editSession, @Selection Region region, Mask mask, InjectedValueAccess context) throws WorldEditException {
|
public void ores(Actor actor, LocalSession session, EditSession editSession, @Selection Region region, @Arg(desc = "Mask") Mask mask, InjectedValueAccess context) throws WorldEditException {
|
||||||
actor.checkConfirmationRegion(() -> {
|
actor.checkConfirmationRegion(() -> {
|
||||||
editSession.addOres(region, mask);
|
editSession.addOres(region, mask);
|
||||||
BBC.VISITOR_BLOCK.send(actor, editSession.getBlockChangeCount());
|
BBC.VISITOR_BLOCK.send(actor, editSession.getBlockChangeCount());
|
||||||
@ -171,7 +171,7 @@ public class GenerationCommands {
|
|||||||
)
|
)
|
||||||
@CommandPermissions("worldedit.generation.ore")
|
@CommandPermissions("worldedit.generation.ore")
|
||||||
@Logging(PLACEMENT)
|
@Logging(PLACEMENT)
|
||||||
public void ore(Actor actor, LocalSession session, EditSession editSession, @Selection Region region, Mask mask, Pattern material, @Arg(desc="Ore vein size") @Range(min = 0) int size, int freq, @Range(min = 0, max = 100) int rarity, @Range(min = 0, max = 255) int minY, @Range(min = 0, max = 255) int maxY, InjectedValueAccess context) throws WorldEditException {
|
public void ore(Actor actor, LocalSession session, EditSession editSession, @Selection Region region, @Arg(desc = "Mask") Mask mask, @Arg(desc = "Pattern") Pattern material, @Arg(desc="Ore vein size") @Range(min = 0) int size, int freq, @Range(min = 0, max = 100) int rarity, @Range(min = 0, max = 255) int minY, @Range(min = 0, max = 255) int maxY, InjectedValueAccess context) throws WorldEditException {
|
||||||
actor.checkConfirmationRegion(() -> {
|
actor.checkConfirmationRegion(() -> {
|
||||||
editSession.addOre(region, mask, material, size, freq, rarity, minY, maxY);
|
editSession.addOre(region, mask, material, size, freq, rarity, minY, maxY);
|
||||||
BBC.VISITOR_BLOCK.send(actor, editSession.getBlockChangeCount());
|
BBC.VISITOR_BLOCK.send(actor, editSession.getBlockChangeCount());
|
||||||
|
@ -140,7 +140,7 @@ public class MaskCommands {
|
|||||||
name = "#offset",
|
name = "#offset",
|
||||||
desc = "Offset a mask"
|
desc = "Offset a mask"
|
||||||
)
|
)
|
||||||
public Mask offset(double x, double y, double z, Mask mask) {
|
public Mask offset(@Arg(desc = "double x") double x, @Arg(desc = "double y") double y, @Arg(desc = "double z") double z, @Arg(desc = "Mask") Mask mask) {
|
||||||
return new OffsetMask(mask, BlockVector3.at(x, y, z));
|
return new OffsetMask(mask, BlockVector3.at(x, y, z));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ public class TransformCommands {
|
|||||||
name = "#pattern",
|
name = "#pattern",
|
||||||
desc = "Always use a specific pattern"
|
desc = "Always use a specific pattern"
|
||||||
)
|
)
|
||||||
public ResettableExtent pattern(Actor actor, LocalSession session, Pattern pattern, @Arg(name = "other", desc = "ResettableExtent", def = "#null") ResettableExtent other) {
|
public ResettableExtent pattern(Actor actor, LocalSession session, @Arg(desc = "Pattern") Pattern pattern, @Arg(name = "other", desc = "ResettableExtent", def = "#null") ResettableExtent other) {
|
||||||
return new PatternTransform(other, pattern);
|
return new PatternTransform(other, pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren