From 44c614d6f0bafe6314b01ea0d5f1b0939ca76d6b Mon Sep 17 00:00:00 2001 From: hhhzzzsss Date: Mon, 27 May 2024 00:35:30 -0500 Subject: [PATCH] Remove testBlockState command --- .../songplayer/CommandProcessor.java | 34 ------------------- 1 file changed, 34 deletions(-) diff --git a/src/main/java/com/github/hhhzzzsss/songplayer/CommandProcessor.java b/src/main/java/com/github/hhhzzzsss/songplayer/CommandProcessor.java index 1840b35..71b8f9d 100644 --- a/src/main/java/com/github/hhhzzzsss/songplayer/CommandProcessor.java +++ b/src/main/java/com/github/hhhzzzsss/songplayer/CommandProcessor.java @@ -62,7 +62,6 @@ public class CommandProcessor { commands.add(new announcementCommand()); commands.add(new songItemCommand()); commands.add(new testSongCommand()); - commands.add(new testBlockStateCommand()); for (Command command : commands) { commandMap.put(command.getName().toLowerCase(Locale.ROOT), command); @@ -1192,39 +1191,6 @@ public class CommandProcessor { } } - private static class testBlockStateCommand extends Command { - public String getName() { - return "testBlockState"; - } - public String[] getSyntax() { - return new String[0]; - } - public String getDescription() { - return "for dev purposes"; - } - public boolean processCommand(String args) { - if (args.length() == 0) { - if (MC.crosshairTarget instanceof BlockHitResult) { - BlockHitResult hitResult = (BlockHitResult) MC.crosshairTarget; - BlockState bs = MC.world.getBlockState(hitResult.getBlockPos()); - ItemStack stack = new ItemStack(bs.getBlock()); - SongPlayer.addChatMessage(stack.toString()); - for (Map.Entry, Comparable> entry : bs.getEntries().entrySet()) { - Property property = entry.getKey(); - Comparable value = entry.getValue(); -// SongPlayer.addChatMessage(net.minecraft.util.Util.getValueAsString(property, comparable)); - System.out.println(property.getClass()); - System.out.println(value.getClass()); - } - } - return true; - } - else { - return false; - } - } - } - public static CompletableFuture handleSuggestions(String text, SuggestionsBuilder suggestionsBuilder) { if (!text.contains(" ")) { List names = commandCompletions