diff --git a/paper-api/src/main/java/org/bukkit/block/Jukebox.java b/paper-api/src/main/java/org/bukkit/block/Jukebox.java index e070d87485..fb600c2b87 100644 --- a/paper-api/src/main/java/org/bukkit/block/Jukebox.java +++ b/paper-api/src/main/java/org/bukkit/block/Jukebox.java @@ -1,6 +1,7 @@ package org.bukkit.block; import org.bukkit.Material; +import org.bukkit.inventory.ItemStack; /** * Represents a captured state of a jukebox. @@ -8,9 +9,9 @@ import org.bukkit.Material; public interface Jukebox extends BlockState { /** - * Gets the record being played. + * Gets the record inserted into the jukebox. * - * @return The record Material, or AIR if none is playing + * @return The record Material, or AIR if none is inserted */ public Material getPlaying(); @@ -21,6 +22,20 @@ public interface Jukebox extends BlockState { */ public void setPlaying(Material record); + /** + * Gets the record item inserted into the jukebox. + * + * @return a copy of the inserted record, or an air stack if none + */ + public ItemStack getRecord(); + + /** + * Sets the record being played. + * + * @param record the record to insert or null/AIR to empty + */ + public void setRecord(ItemStack record); + /** * Checks if the jukebox is playing a record. *