Package net.glowstone.inventory
Class GlowMetaSpawn
java.lang.Object
net.glowstone.inventory.GlowMetaItem
net.glowstone.inventory.GlowMetaSpawn
- All Implemented Interfaces:
Cloneable
,org.bukkit.configuration.serialization.ConfigurationSerializable
,org.bukkit.inventory.meta.BlockDataMeta
,org.bukkit.inventory.meta.Damageable
,org.bukkit.inventory.meta.ItemMeta
,org.bukkit.inventory.meta.Repairable
,org.bukkit.inventory.meta.SpawnEggMeta
,org.bukkit.persistence.PersistentDataHolder
-
Constructor Summary
ConstructorDescriptionGlowMetaSpawn
(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta
. -
Method Summary
Modifier and TypeMethodDescription@NotNull GlowMetaSpawn
clone()
org.bukkit.entity.EntityType
boolean
boolean
isApplicable
(org.bukkit.Material material) Check whether this ItemMeta can be applied to the given material.void
setEntityTag
(CompoundTag entityTag) void
setSpawnedType
(org.bukkit.entity.EntityType spawnedType) Methods inherited from class net.glowstone.inventory.GlowMetaItem
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getBlockData, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDamage, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, getRepairCost, hasAttributeModifiers, hasBlockData, hasConflictingEnchant, hasCustomModelData, hasDamage, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, hasRepairCost, isUnbreakable, lore, lore, readNbtEnchants, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serializeEnchants, setAttributeModifiers, setBlockData, setCanDestroy, setCanPlaceOn, setCustomModelData, setDamage, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setRepairCost, setUnbreakable, setVersion, toString, writeNbtEnchants
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
GlowMetaSpawn
public GlowMetaSpawn(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta
. If that item is anotherSpawnEggMeta
, the creature type is copied; if it's aGlowMetaSpawn
, any custom NBT for the spawned entity is also copied.- Parameters:
meta
- theItemMeta
to copy
-
-
Method Details
-
serialize
- Specified by:
serialize
in interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
- Overrides:
serialize
in classGlowMetaItem
-
isApplicable
public boolean isApplicable(org.bukkit.Material material) Description copied from class:GlowMetaItem
Check whether this ItemMeta can be applied to the given material.- Overrides:
isApplicable
in classGlowMetaItem
- Parameters:
material
- The Material.- Returns:
- True if this ItemMeta is applicable.
-
hasSpawnedType
public boolean hasSpawnedType() -
clone
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.Damageable
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.ItemMeta
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.Repairable
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.SpawnEggMeta
- Overrides:
clone
in classGlowMetaItem
-
getSpawnedType
public org.bukkit.entity.EntityType getSpawnedType()- Specified by:
getSpawnedType
in interfaceorg.bukkit.inventory.meta.SpawnEggMeta
-
setSpawnedType
public void setSpawnedType(org.bukkit.entity.EntityType spawnedType) - Specified by:
setSpawnedType
in interfaceorg.bukkit.inventory.meta.SpawnEggMeta
-
getEntityTag
-
setEntityTag
-