Implementation of richer playEffect methods. Addresses BUKKIT-857

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
Bukkit/Spigot
2012-02-26 12:53:31 -05:00
parent 27fb3d2fea
commit da943825be
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;
}
}