Modifier and Type | Field and Description |
---|---|
protected HashMap<String,HashMap<Argument<?>[],BiConsumer>> |
complexMap |
protected String |
label |
protected HashMap<String,Consumer<S>> |
simpleMap |
Modifier | Constructor and Description |
---|---|
protected |
Main(@NotNull String label) |
Modifier and Type | Method and Description |
---|---|
<T> Commander.Main |
arg(@NotNull Argument<T> arg,
@NotNull BiConsumer<S,Object[]> consumer) |
Commander.Main |
arg(@NotNull BiConsumer<S,Object[]> consumer,
Argument<?>... args) |
Commander.Main |
arg(@NotNull String arg,
Commander.ComplexArg... subArgs) |
Commander.Main |
arg(@NotNull String arg,
Commander.SimpleArg... subArgs) |
Commander.Main |
arg(@NotNull String arg,
@NotNull Consumer<S> consumer) |
Commander.Main |
arg(@NotNull String arg,
@NotNull Consumer<S> consumer,
Commander.ComplexArg... subArgs) |
Commander.Main |
arg(@NotNull String arg,
@NotNull Consumer<S> consumer,
Commander.SimpleArg... subArgs) |
protected HashMap<Argument<?>[],BiConsumer> |
getMap(String key) |
protected void |
register(String path,
Argument<?>[] args,
BiConsumer consumer) |
Commander.Main |
setSuper(Commander<S> commander) |
protected final String label
protected final HashMap<String,HashMap<Argument<?>[],BiConsumer>> complexMap
protected Main(@NotNull @NotNull String label)
public Commander.Main setSuper(Commander<S> commander)
public Commander.Main arg(@NotNull @NotNull String arg, @NotNull @NotNull Consumer<S> consumer)
public Commander.Main arg(@NotNull @NotNull String arg, @NotNull Commander.SimpleArg... subArgs)
public Commander.Main arg(@NotNull @NotNull String arg, @NotNull @NotNull Consumer<S> consumer, @NotNull Commander.SimpleArg... subArgs)
public Commander.Main arg(@NotNull @NotNull String arg, @NotNull Commander.ComplexArg... subArgs)
public Commander.Main arg(@NotNull @NotNull String arg, @NotNull @NotNull Consumer<S> consumer, @NotNull Commander.ComplexArg... subArgs)
public <T> Commander.Main arg(@NotNull @NotNull Argument<T> arg, @NotNull @NotNull BiConsumer<S,Object[]> consumer)
public Commander.Main arg(@NotNull @NotNull BiConsumer<S,Object[]> consumer, @NotNull Argument<?>... args)
protected void register(String path, Argument<?>[] args, BiConsumer consumer)
protected final HashMap<Argument<?>[],BiConsumer> getMap(String key)
Copyright © 2020. All rights reserved.