diff --git a/src/main/java/snw/kookbc/impl/command/litecommands/WrappedLiteCommandsBuilder.java b/src/main/java/snw/kookbc/impl/command/litecommands/WrappedLiteCommandsBuilder.java index 3482c851..bbdb2cbc 100644 --- a/src/main/java/snw/kookbc/impl/command/litecommands/WrappedLiteCommandsBuilder.java +++ b/src/main/java/snw/kookbc/impl/command/litecommands/WrappedLiteCommandsBuilder.java @@ -128,27 +128,26 @@ public B commands(Object... commands) { return self(); } - @SuppressWarnings("unchecked") - protected B self() { - return ((B) delegate); - } - - @Override - public B argumentParser(Class type, Parser parser) { + public B argumentParser(Class type, Parser parser) { return delegate.argumentParser(type, parser); } @Override - public B argumentParser(Class type, ArgumentKey key, Parser parser) { + public B argumentParser(Class type, ArgumentKey key, Parser parser) { return delegate.argumentParser(type, key, parser); } @Override - public B argumentParser(TypeRange type, ArgumentKey key, Parser parser) { + public B argumentParser(TypeRange type, ArgumentKey key, Parser parser) { return delegate.argumentParser(type, key, parser); } + @SuppressWarnings("unchecked") + protected B self() { + return ((B) delegate); + } + @Override public B argumentSuggestion(Class type, SuggestionResult suggestion) { return delegate.argumentSuggestion(type, suggestion); @@ -180,22 +179,22 @@ public B argumentSuggester(TypeRange type, ArgumentKey key, Suggester B argument(Class type, ArgumentResolverBase resolver) { + public B argument(Class type, ArgumentResolverBase resolver) { return delegate.argument(type, resolver); } @Override - public B argument(Class type, ArgumentKey key, ArgumentResolverBase resolver) { + public B argument(Class type, ArgumentKey key, ArgumentResolverBase resolver) { return delegate.argument(type, key, resolver); } @Override - public B argument(TypeRange type, ArgumentResolverBase resolver) { + public B argument(TypeRange type, ArgumentResolverBase resolver) { return delegate.argument(type, resolver); } @Override - public B argument(TypeRange type, ArgumentKey key, ArgumentResolverBase resolver) { + public B argument(TypeRange type, ArgumentKey key, ArgumentResolverBase resolver) { return delegate.argument(type, key, resolver); }