diff options
author | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2023-10-11 16:09:42 -0400 |
---|---|---|
committer | Kevinthegreat <92656833+kevinthegreat1@users.noreply.github.com> | 2023-12-07 23:03:10 -0500 |
commit | c7088f48ef5b2f5a61f471d93ee23f4f2ccad010 (patch) | |
tree | 5706977bd98ebebea6e08eb6eba3daf505a6469e /src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java | |
parent | ab3d2e8535500225eb0b71b03026853999aef381 (diff) | |
download | Skyblocker-c7088f48ef5b2f5a61f471d93ee23f4f2ccad010.tar.gz Skyblocker-c7088f48ef5b2f5a61f471d93ee23f4f2ccad010.tar.bz2 Skyblocker-c7088f48ef5b2f5a61f471d93ee23f4f2ccad010.zip |
Add dump held item nbt command
Diffstat (limited to 'src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java b/src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java deleted file mode 100644 index 5f6e0362..00000000 --- a/src/main/java/de/hysky/skyblocker/debug/DumpPlayersCommand.java +++ /dev/null @@ -1,31 +0,0 @@ -package de.hysky.skyblocker.debug; - -import com.mojang.brigadier.Command; -import com.mojang.brigadier.CommandDispatcher; -import de.hysky.skyblocker.SkyblockerMod; -import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource; -import net.minecraft.command.CommandRegistryAccess; -import net.minecraft.entity.player.PlayerEntity; -import net.minecraft.text.Text; - -import static net.fabricmc.fabric.api.client.command.v2.ClientCommandManager.literal; - -public class DumpPlayersCommand { - - static void register(CommandDispatcher<FabricClientCommandSource> dispatcher, CommandRegistryAccess registryAccess) { - dispatcher.register(literal(SkyblockerMod.NAMESPACE) - .then(literal("debug") - .then(literal("dumpPlayers") - .executes(context -> { - FabricClientCommandSource source = context.getSource(); - - source.getWorld().getEntities().forEach(e -> { - if (e instanceof PlayerEntity player) { - source.sendFeedback(Text.of("'" + player.getName().getString() + "'")); - } - }); - - return Command.SINGLE_SUCCESS; - })))); - } -} |