Class JukeboxSongMock

java.lang.Object
be.seeseemelk.mockbukkit.JukeboxSongMock
All Implemented Interfaces:
net.kyori.adventure.key.Keyed, org.bukkit.JukeboxSong, org.bukkit.Keyed, org.bukkit.Translatable

public class JukeboxSongMock extends Object implements org.bukkit.JukeboxSong
  • Field Summary

    Fields inherited from interface org.bukkit.JukeboxSong

    BLOCKS, CAT, CHIRP, CREATOR, CREATOR_MUSIC_BOX, ELEVEN, FAR, FIVE, MALL, MELLOHI, OTHERSIDE, PIGSTEP, PRECIPICE, RELIC, STAL, STRAD, THIRTEEN, WAIT, WARD
  • Constructor Summary

    Constructors
    Constructor
    Description
    JukeboxSongMock(org.bukkit.NamespacedKey key, String translationKey)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    from(com.google.gson.JsonObject jsonObject)
     
    @NotNull org.bukkit.NamespacedKey
     
    @NotNull String
    Deprecated, for removal: This API element is subject to removal in a future version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.Keyed

    key
  • Constructor Details

    • JukeboxSongMock

      public JukeboxSongMock(org.bukkit.NamespacedKey key, String translationKey)
  • Method Details

    • from

      @Internal public static JukeboxSongMock from(com.google.gson.JsonObject jsonObject)
    • getTranslationKey

      @Deprecated(forRemoval=true, since="1.21") @NotNull public @NotNull String getTranslationKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getTranslationKey in interface org.bukkit.JukeboxSong
      Specified by:
      getTranslationKey in interface org.bukkit.Translatable
    • getKey

      @NotNull public @NotNull org.bukkit.NamespacedKey getKey()
      Specified by:
      getKey in interface org.bukkit.Keyed