Skip to content

Commit

Permalink
fix(test): Implement missing TestPlayer methods
Browse files Browse the repository at this point in the history
  • Loading branch information
4drian3d committed Aug 28, 2024
1 parent 99d2290 commit 53cc356
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
package io.github._4drian3d.chatregulator.objects;

import com.velocitypowered.api.network.ProtocolState;
import com.velocitypowered.api.network.ProtocolVersion;
import com.velocitypowered.api.permission.Tristate;
import com.velocitypowered.api.proxy.ConnectionRequestBuilder;
import com.velocitypowered.api.proxy.Player;
import com.velocitypowered.api.proxy.ServerConnection;
import com.velocitypowered.api.proxy.crypto.IdentifiedKey;
import com.velocitypowered.api.proxy.messages.ChannelIdentifier;
import com.velocitypowered.api.proxy.messages.PluginMessageEncoder;
import com.velocitypowered.api.proxy.player.PlayerSettings;
import com.velocitypowered.api.proxy.player.ResourcePackInfo;
import com.velocitypowered.api.proxy.player.TabList;
import com.velocitypowered.api.proxy.server.RegisteredServer;
import com.velocitypowered.api.util.GameProfile;
import com.velocitypowered.api.util.GameProfile.Property;
import com.velocitypowered.api.util.ModInfo;
import com.velocitypowered.api.util.ServerLink;
import net.kyori.adventure.identity.Identity;
import net.kyori.adventure.key.Key;
import net.kyori.adventure.text.Component;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -47,6 +51,11 @@ public ProtocolVersion getProtocolVersion() {
return ProtocolVersion.MINECRAFT_1_18;
}

@Override
public ProtocolState getProtocolState() {
return null;
}

@Override
public InetSocketAddress getRemoteAddress() {
return new InetSocketAddress(404);
Expand Down Expand Up @@ -97,6 +106,26 @@ public void removeCustomChatCompletions(@NotNull Collection<String> collection)
public void setCustomChatCompletions(@NotNull Collection<String> collection) {
}

@Override
public void transferToHost(@NotNull InetSocketAddress inetSocketAddress) {

}

@Override
public void storeCookie(Key key, byte[] bytes) {

}

@Override
public void requestCookie(Key key) {

}

@Override
public void setServerLinks(@NotNull List<ServerLink> list) {

}

@Override
public Optional<ServerConnection> getCurrentServer() {
return Optional.empty();
Expand Down Expand Up @@ -187,6 +216,11 @@ public boolean sendPluginMessage(ChannelIdentifier arg0, byte[] arg1) {
return false;
}

@Override
public boolean sendPluginMessage(@NotNull ChannelIdentifier channelIdentifier, @NotNull PluginMessageEncoder pluginMessageEncoder) {
return false;
}

@Override
public void sendResourcePack(String arg0) {

Expand Down

0 comments on commit 53cc356

Please sign in to comment.