chore: make code style consistent
This commit is contained in:
parent
a2cea2f33e
commit
89ec3fbf29
380 changed files with 479 additions and 936 deletions
|
|
@ -55,5 +55,4 @@ public interface AudienceProvider<C> extends Function<@NonNull C, @NonNull Audie
|
|||
static <C extends Audience> AudienceProvider<C> nativeAudience() {
|
||||
return (AudienceProvider<C>) NativeAudienceProvider.INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -70,5 +70,4 @@ final class ComponentHelper {
|
|||
}
|
||||
return length;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -326,5 +326,4 @@ public final class MinecraftExceptionHandler<C> {
|
|||
*/
|
||||
COMMAND_EXECUTION
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,5 +55,4 @@ public final class MinecraftExtrasMetaKeys {
|
|||
|
||||
private MinecraftExtrasMetaKeys() {
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -412,9 +412,9 @@ public final class MinecraftHelp<C> {
|
|||
.append(text(" "))
|
||||
.append(lastBranch ? this.lastBranch() : this.branch())
|
||||
.append(this.highlight(text(
|
||||
String.format(" /%s", helpEntry.getSyntaxString()),
|
||||
this.colors.highlight
|
||||
))
|
||||
String.format(" /%s", helpEntry.getSyntaxString()),
|
||||
this.colors.highlight
|
||||
))
|
||||
.hoverEvent(description.color(this.colors.text))
|
||||
.clickEvent(runCommand(this.commandPrefix + " " + helpEntry.getSyntaxString()))
|
||||
)
|
||||
|
|
@ -688,11 +688,11 @@ public final class MinecraftHelp<C> {
|
|||
) {
|
||||
return this.highlight(
|
||||
this.messageProvider.provide(
|
||||
sender,
|
||||
MESSAGE_PAGE_OUT_OF_RANGE,
|
||||
String.valueOf(attemptedPage),
|
||||
String.valueOf(maxPages)
|
||||
)
|
||||
sender,
|
||||
MESSAGE_PAGE_OUT_OF_RANGE,
|
||||
String.valueOf(attemptedPage),
|
||||
String.valueOf(maxPages)
|
||||
)
|
||||
.color(this.colors.text)
|
||||
.replaceText(config -> {
|
||||
config.matchLiteral("<page>");
|
||||
|
|
@ -717,7 +717,6 @@ public final class MinecraftHelp<C> {
|
|||
* @return component
|
||||
*/
|
||||
@NonNull Component provide(@NonNull C sender, @NonNull String key, @NonNull String... args);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -809,7 +808,5 @@ public final class MinecraftHelp<C> {
|
|||
) {
|
||||
return new HelpColors(primary, highlight, alternateHighlight, text, accent);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,5 +37,4 @@ final class NativeAudienceProvider<C extends Audience> implements AudienceProvid
|
|||
public @NonNull Audience apply(@NonNull final C sender) {
|
||||
return sender;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,5 +74,4 @@ final class Pagination<T> {
|
|||
|
||||
return Collections.unmodifiableList(renderedContent);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ import static java.util.Objects.requireNonNull;
|
|||
* @since 1.4.0
|
||||
*/
|
||||
public final class RichDescription implements ArgumentDescription {
|
||||
|
||||
private static final RichDescription EMPTY = new RichDescription(Component.empty());
|
||||
|
||||
private final Component contents;
|
||||
|
|
@ -87,7 +88,7 @@ public final class RichDescription implements ArgumentDescription {
|
|||
/**
|
||||
* Create a rich description pointing to a translation key.
|
||||
*
|
||||
* @param key the translation key
|
||||
* @param key the translation key
|
||||
* @param args the arguments to use with the translation key
|
||||
* @return a new rich description
|
||||
*/
|
||||
|
|
@ -105,7 +106,7 @@ public final class RichDescription implements ArgumentDescription {
|
|||
* {@inheritDoc}
|
||||
*
|
||||
* @deprecated to discourage use. A plain serialization is a somewhat expensive and lossy operation, use
|
||||
* {@link #getContents()} instead.
|
||||
* {@link #getContents()} instead.
|
||||
*/
|
||||
@Override
|
||||
@Deprecated
|
||||
|
|
@ -127,5 +128,4 @@ public final class RichDescription implements ArgumentDescription {
|
|||
public boolean isEmpty() {
|
||||
return Component.empty().equals(this.contents);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -212,7 +212,6 @@ public final class TextColorArgument<C> extends CommandArgument<C, TextColor> {
|
|||
suggestions.addAll(NamedTextColor.NAMES.keys());
|
||||
return suggestions;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -231,7 +230,5 @@ public final class TextColorArgument<C> extends CommandArgument<C, TextColor> {
|
|||
CaptionVariable.of("input", input)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue