Class GlowJukebox

java.lang.Object
net.glowstone.block.GlowBlockState
net.glowstone.block.entity.state.GlowJukebox
All Implemented Interfaces:
org.bukkit.block.BlockState, org.bukkit.block.Jukebox, org.bukkit.block.TileState, org.bukkit.metadata.Metadatable, org.bukkit.persistence.PersistentDataHolder

public class GlowJukebox extends GlowBlockState implements org.bukkit.block.Jukebox
  • Constructor Details

    • GlowJukebox

      public GlowJukebox(GlowBlock block)
      Creates a block state for the given jukebox block.
      Parameters:
      block - the jukebox block
  • Method Details

    • update

      public boolean update(boolean force, boolean applyPhysics)
      Specified by:
      update in interface org.bukkit.block.BlockState
      Overrides:
      update in class GlowBlockState
    • getPlaying

      public org.bukkit.Material getPlaying()
      Specified by:
      getPlaying in interface org.bukkit.block.Jukebox
    • isPlaying

      public boolean isPlaying()
      Specified by:
      isPlaying in interface org.bukkit.block.Jukebox
    • setPlaying

      public void setPlaying(org.bukkit.Material record)
      Specified by:
      setPlaying in interface org.bukkit.block.Jukebox
    • stopPlaying

      public void stopPlaying()
      Specified by:
      stopPlaying in interface org.bukkit.block.Jukebox
    • eject

      public boolean eject()
      Specified by:
      eject in interface org.bukkit.block.Jukebox
    • getPersistentDataContainer

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()
      Specified by:
      getPersistentDataContainer in interface org.bukkit.persistence.PersistentDataHolder
      Specified by:
      getPersistentDataContainer in interface org.bukkit.block.TileState
    • getRecord

      public org.bukkit.inventory.ItemStack getRecord()
      Specified by:
      getRecord in interface org.bukkit.block.Jukebox
    • setRecord

      public void setRecord(org.bukkit.inventory.ItemStack record)
      Specified by:
      setRecord in interface org.bukkit.block.Jukebox