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