mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
Implementation of richer playEffect methods. Addresses BUKKIT-857
By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
@@ -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