3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-24 18:10:08 +01:00

Improved /info tool to handle more block data.

Dieser Commit ist enthalten in:
sk89q 2011-01-26 12:42:14 -08:00
Ursprung 14bcf2fa06
Commit 6b73ece378

Datei anzeigen

@ -45,6 +45,13 @@ public class QueryTool implements SuperPickaxeMode {
if (block instanceof MobSpawnerBlock) { if (block instanceof MobSpawnerBlock) {
player.printRaw("\u00A7e" + "Mob Type: " player.printRaw("\u00A7e" + "Mob Type: "
+ ((MobSpawnerBlock)block).getMobType()); + ((MobSpawnerBlock)block).getMobType());
} else if (block instanceof NoteBlock) {
player.printRaw("\u00A7e" + "Note block: "
+ ((NoteBlock)block).getNote());
} else if (block.getType() == BlockID.CLOTH) {
// Should never be null
player.printRaw("\u00A7e" + "Color: "
+ ClothColor.fromID(block.getData()).getName());
} }
return true; return true;