Class AbstractSpeakerNbtUtil

java.lang.Object
com.craftmend.openaudiomc.api.internal.AbstractSpeakerNbtUtil

public abstract class AbstractSpeakerNbtUtil extends Object
  • Field Details

    • speakerUUID

      protected UUID speakerUUID
    • speakerSkinName

      protected String speakerSkinName
    • textureValue

      protected String textureValue
    • rawSkinUrl

      protected String rawSkinUrl
    • baseSkullMaterial

      protected org.bukkit.Material baseSkullMaterial
  • Constructor Details

    • AbstractSpeakerNbtUtil

      public AbstractSpeakerNbtUtil(String speakerSkinName, String speakerSkinUrl, UUID speakerUUID, org.bukkit.Material baseSkullMaterial)
  • Method Details

    • isSpeakerSkull

      public abstract boolean isSpeakerSkull(org.bukkit.block.Block block)
      Checks if a placed block is *likely* to be an OpenAudioMc speaker skull
      Parameters:
      block - the block to check
      Returns:
      true if it is likely an OpenAudioMc speaker skull, false otherwise
    • getSkull

      public abstract org.bukkit.inventory.ItemStack getSkull(String source, int radius)
      Generates a skull itemstack with the OpenAudioMc speaker skin and embeds the source and radius in its metadata
      Parameters:
      source - the source identifier to embed in the skull metadata
      radius - the radius identifier to embed in the skull metadata
      Returns:
      the skull itemstack
    • getSpeakerSkinName

      public String getSpeakerSkinName()