Implementation of richer playEffect methods. Addresses BUKKIT-857
This commit is contained in:
committed by
EvilSeph
parent
50bd232814
commit
aaea53c517
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user