mixins.top

This commit is contained in:
Saturn5Vfive 2022-04-19 17:05:02 -05:00
parent 1a7d652154
commit ace390f919
2 changed files with 0 additions and 11 deletions

View file

@ -12,7 +12,6 @@ import net.shadow.client.feature.command.argument.PlayerFromNameArgumentParser;
import net.shadow.client.feature.command.coloring.ArgumentType; import net.shadow.client.feature.command.coloring.ArgumentType;
import net.shadow.client.feature.command.coloring.PossibleArgument; import net.shadow.client.feature.command.coloring.PossibleArgument;
import net.shadow.client.feature.command.coloring.StaticArgumentServer; import net.shadow.client.feature.command.coloring.StaticArgumentServer;
import net.shadow.client.feature.command.examples.ExampleServer;
import net.shadow.client.feature.command.exception.CommandException; import net.shadow.client.feature.command.exception.CommandException;
import java.util.Objects; import java.util.Objects;
@ -27,10 +26,6 @@ public class Crash extends Command {
return StaticArgumentServer.serveFromStatic(index, new PossibleArgument(ArgumentType.STRING, Objects.requireNonNull(ShadowMain.client.world).getPlayers().stream().map(abstractClientPlayerEntity -> abstractClientPlayerEntity.getGameProfile().getName()).toList().toArray(String[]::new))); return StaticArgumentServer.serveFromStatic(index, new PossibleArgument(ArgumentType.STRING, Objects.requireNonNull(ShadowMain.client.world).getPlayers().stream().map(abstractClientPlayerEntity -> abstractClientPlayerEntity.getGameProfile().getName()).toList().toArray(String[]::new)));
} }
@Override
public ExamplesEntry getExampleArguments() {
return ExampleServer.getPlayerNames();
}
@Override @Override
public void onExecute(String[] args) throws CommandException { public void onExecute(String[] args) throws CommandException {

View file

@ -22,7 +22,6 @@ import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.coloring.ArgumentType; import net.shadow.client.feature.command.coloring.ArgumentType;
import net.shadow.client.feature.command.coloring.PossibleArgument; import net.shadow.client.feature.command.coloring.PossibleArgument;
import net.shadow.client.feature.command.coloring.StaticArgumentServer; import net.shadow.client.feature.command.coloring.StaticArgumentServer;
import net.shadow.client.feature.command.examples.ExampleServer;
import net.shadow.client.feature.command.exception.CommandException; import net.shadow.client.feature.command.exception.CommandException;
import net.shadow.client.helper.event.EventListener; import net.shadow.client.helper.event.EventListener;
import net.shadow.client.helper.event.EventType; import net.shadow.client.helper.event.EventType;
@ -46,11 +45,6 @@ public class Find extends Command {
Events.registerEventHandlerClass(this); Events.registerEventHandlerClass(this);
} }
@Override
public ExamplesEntry getExampleArguments() {
return ExampleServer.getPlayerNames();
}
@EventListener(type = EventType.PACKET_RECEIVE) @EventListener(type = EventType.PACKET_RECEIVE)
void pRecv(PacketEvent pe) { void pRecv(PacketEvent pe) {
if (!pendingBook) { if (!pendingBook) {