Class RawArguments
java.lang.Object
sawfowl.commandpack.api.commands.raw.arguments.RawArguments
This class is designed to quickly create some arguments for
Some more variants may be added in the future.
RawSettings commands.Some more variants may be added in the future.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RawArgument<Account>createAccountArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<Ban.IP>createBanIPArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<BigDecimal>createBigDecimalArgument(String key, @NotNull Collection<BigDecimal> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable BigDecimal def, String permission, Object[] localesPath) static RawArgument<Boolean>createBooleanArgument(String key, boolean optional, boolean optionalForConsole, int cursor, @Nullable Boolean def, String permission, Object[] localesPath) static RawArgument<Currency>createCurrencyArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<Double>createDoubleArgument(String key, @NotNull Collection<Double> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable Double def, String permission, Object[] localesPath) static RawArgument<EnchantmentType>createEnchantmentArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<Integer>createIntegerArgument(String key, @NotNull Collection<Integer> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable Integer def, String permission, Object[] localesPath) static RawArgument<Kit>createKitArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<Locale>createLocaleArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<Long>createLongArgument(String key, @NotNull Collection<Long> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable Long def, String permission, Object[] localesPath) static RawArgument<sawfowl.commandpack.api.data.punishment.Mute>createMuteArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<ServerPlayer>createPlayerArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<Ban.Profile>createProfileArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<String>createRemainingJoinedStringsArgument(String key, boolean optional, boolean optionalForConsole, int cursor, @Nullable String def, String permission, Object[] localesPath) This argument should be specified last in the queue.static RawArgument<String>createStringArgument(String key, @NotNull Collection<String> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable String def, String permission, Object[] localesPath) static RawArgument<String>createStringArgument(String key, @NotNull Stream<String> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable String def, String permission, Object[] localesPath) static RawArgument<UniqueAccount>createUniqueAccountArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<sawfowl.commandpack.api.data.punishment.Warns>createWarnsArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<Warp>createWarpArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) static RawArgument<ServerWorld>createWorldArgument(boolean optional, boolean optionalForConsole, int cursor, @Nullable ServerWorld def, String permission, Object[] localesPath) static RawArgument<WorldType>createWorldTypeArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
RawArguments
public RawArguments()
-
-
Method Details
-
createStringArgument
-
createStringArgument
public static RawArgument<String> createStringArgument(String key, @NotNull @NotNull Collection<String> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable @Nullable String def, String permission, Object[] localesPath) -
createRemainingJoinedStringsArgument
public static RawArgument<String> createRemainingJoinedStringsArgument(String key, boolean optional, boolean optionalForConsole, int cursor, @Nullable @Nullable String def, String permission, Object[] localesPath) This argument should be specified last in the queue. -
createIntegerArgument
public static RawArgument<Integer> createIntegerArgument(String key, @NotNull @NotNull Collection<Integer> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable @Nullable Integer def, String permission, Object[] localesPath) -
createLongArgument
public static RawArgument<Long> createLongArgument(String key, @NotNull @NotNull Collection<Long> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable @Nullable Long def, String permission, Object[] localesPath) -
createDoubleArgument
public static RawArgument<Double> createDoubleArgument(String key, @NotNull @NotNull Collection<Double> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable @Nullable Double def, String permission, Object[] localesPath) -
createBigDecimalArgument
public static RawArgument<BigDecimal> createBigDecimalArgument(String key, @NotNull @NotNull Collection<BigDecimal> variants, boolean optional, boolean optionalForConsole, int cursor, @Nullable @Nullable BigDecimal def, String permission, Object[] localesPath) -
createBooleanArgument
-
createWorldArgument
public static RawArgument<ServerWorld> createWorldArgument(boolean optional, boolean optionalForConsole, int cursor, @Nullable @Nullable ServerWorld def, String permission, Object[] localesPath) -
createWorldTypeArgument
public static RawArgument<WorldType> createWorldTypeArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createPlayerArgument
public static RawArgument<ServerPlayer> createPlayerArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createUniqueAccountArgument
public static RawArgument<UniqueAccount> createUniqueAccountArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createAccountArgument
public static RawArgument<Account> createAccountArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createProfileArgument
public static RawArgument<Ban.Profile> createProfileArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createBanIPArgument
public static RawArgument<Ban.IP> createBanIPArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createMuteArgument
public static RawArgument<sawfowl.commandpack.api.data.punishment.Mute> createMuteArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createWarnsArgument
public static RawArgument<sawfowl.commandpack.api.data.punishment.Warns> createWarnsArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createEnchantmentArgument
public static RawArgument<EnchantmentType> createEnchantmentArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createLocaleArgument
public static RawArgument<Locale> createLocaleArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createCurrencyArgument
public static RawArgument<Currency> createCurrencyArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createKitArgument
public static RawArgument<Kit> createKitArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath) -
createWarpArgument
public static RawArgument<Warp> createWarpArgument(boolean optional, boolean optionalForConsole, int cursor, String permission, Object[] localesPath)
-