Class AbstractSpeakerNbtUtil
java.lang.Object
com.craftmend.openaudiomc.api.internal.AbstractSpeakerNbtUtil
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSpeakerNbtUtil(String speakerSkinName, String speakerSkinUrl, UUID speakerUUID, org.bukkit.Material baseSkullMaterial) -
Method Summary
Modifier and TypeMethodDescriptionabstract org.bukkit.inventory.ItemStackGenerates a skull itemstack with the OpenAudioMc speaker skin and embeds the source and radius in its metadataabstract booleanisSpeakerSkull(org.bukkit.block.Block block) Checks if a placed block is *likely* to be an OpenAudioMc speaker skull
-
Field Details
-
speakerUUID
-
speakerSkinName
-
textureValue
-
rawSkinUrl
-
baseSkullMaterial
protected org.bukkit.Material baseSkullMaterial
-
-
Constructor Details
-
AbstractSpeakerNbtUtil
-
-
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
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 metadataradius- the radius identifier to embed in the skull metadata- Returns:
- the skull itemstack
-
getSpeakerSkinName
-