Implementation of richer playEffect methods. Addresses BUKKIT-857

This commit is contained in:
Celtic Minstrel
2012-02-26 12:53:31 -05:00
committed by EvilSeph
parent 50bd232814
commit aaea53c517
5 changed files with 87 additions and 18 deletions

View File

@@ -476,4 +476,11 @@ public enum Material {
BY_NAME.put(material.name(), material);
}
}
/**
* @return True if this material represents a playable music disk.
*/
public boolean isRecord() {
return id >= GOLD_RECORD.id && id <= RECORD_11.id;
}
}