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;