Allow clearing favicon in ServerPing builder.

This commit is contained in:
Andrew Steinborn 2021-02-09 14:36:10 -05:00
parent 55cc416b52
commit 3aee47166f
2 changed files with 10 additions and 0 deletions

View File

@ -262,6 +262,11 @@ public final class ServerPing {
return this; return this;
} }
public Builder clearFavicon() {
this.favicon = null;
return this;
}
/** /**
* Uses the information from this builder to create a new {@link ServerPing} instance. The * Uses the information from this builder to create a new {@link ServerPing} instance. The
* builder can be re-used after this event has been called. * builder can be re-used after this event has been called.

View File

@ -35,6 +35,11 @@ class MinecraftChannelIdentifierTest {
assertEquals(expected, MinecraftChannelIdentifier.from("velocity:test")); assertEquals(expected, MinecraftChannelIdentifier.from("velocity:test"));
} }
@Test
void createAllowsSlashes() {
create("velocity", "test/test2");
}
@Test @Test
void fromIdentifierThrowsOnBadValues() { void fromIdentifierThrowsOnBadValues() {
assertAll( assertAll(