Skip to content

Commit

Permalink
fix WrappedLiteCommandsBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
huanmeng-qwq committed Feb 13, 2024
1 parent 426f489 commit 239c682
Showing 1 changed file with 12 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,27 +128,26 @@ public B commands(Object... commands) {
return self();
}

@SuppressWarnings("unchecked")
protected B self() {
return ((B) delegate);
}


@Override
public <T> B argumentParser(Class<T> type, Parser<SENDER, ?, T> parser) {
public <T> B argumentParser(Class<T> type, Parser<SENDER, T> parser) {
return delegate.argumentParser(type, parser);
}

@Override
public <T> B argumentParser(Class<T> type, ArgumentKey key, Parser<SENDER, ?, T> parser) {
public <T> B argumentParser(Class<T> type, ArgumentKey key, Parser<SENDER, T> parser) {
return delegate.argumentParser(type, key, parser);
}

@Override
public <T> B argumentParser(TypeRange<T> type, ArgumentKey key, Parser<SENDER, ?, T> parser) {
public <T> B argumentParser(TypeRange<T> type, ArgumentKey key, Parser<SENDER, T> parser) {
return delegate.argumentParser(type, key, parser);
}

@SuppressWarnings("unchecked")
protected B self() {
return ((B) delegate);
}

@Override
public <T> B argumentSuggestion(Class<T> type, SuggestionResult suggestion) {
return delegate.argumentSuggestion(type, suggestion);
Expand Down Expand Up @@ -180,22 +179,22 @@ public <T> B argumentSuggester(TypeRange<T> type, ArgumentKey key, Suggester<SEN
}

@Override
public <T> B argument(Class<T> type, ArgumentResolverBase<SENDER, ?, T> resolver) {
public <T> B argument(Class<T> type, ArgumentResolverBase<SENDER, T> resolver) {
return delegate.argument(type, resolver);
}

@Override
public <T> B argument(Class<T> type, ArgumentKey key, ArgumentResolverBase<SENDER, ?, T> resolver) {
public <T> B argument(Class<T> type, ArgumentKey key, ArgumentResolverBase<SENDER, T> resolver) {
return delegate.argument(type, key, resolver);
}

@Override
public <T> B argument(TypeRange<T> type, ArgumentResolverBase<SENDER, ?, T> resolver) {
public <T> B argument(TypeRange<T> type, ArgumentResolverBase<SENDER, T> resolver) {
return delegate.argument(type, resolver);
}

@Override
public <T> B argument(TypeRange<T> type, ArgumentKey key, ArgumentResolverBase<SENDER, ?, T> resolver) {
public <T> B argument(TypeRange<T> type, ArgumentKey key, ArgumentResolverBase<SENDER, T> resolver) {
return delegate.argument(type, key, resolver);
}

Expand Down

0 comments on commit 239c682

Please sign in to comment.