Implementation of richer playEffect methods. Addresses BUKKIT-857
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
parent
27fb3d2fea
commit
da943825be
5 changed files with 87 additions and 18 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue