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.ItemMeta, org.bukkit.inventory.meta.SpawnEggMeta, org.bukkit.persistence.PersistentDataHolder

public class GlowMetaSpawn extends GlowMetaItem implements org.bukkit.inventory.meta.SpawnEggMeta
  • Constructor Details

    • GlowMetaSpawn

      public GlowMetaSpawn(org.bukkit.inventory.meta.ItemMeta meta)
      Creates an instance by copying from the given ItemMeta. If that item is another SpawnEggMeta, the creature type is copied; if it's a GlowMetaSpawn, any custom NBT for the spawned entity is also copied.
      Parameters:
      meta - the ItemMeta to copy
  • Method Details

    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
      Overrides:
      serialize in class GlowMetaItem
    • 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 class GlowMetaItem
      Parameters:
      material - The Material.
      Returns:
      True if this ItemMeta is applicable.
    • hasSpawnedType

      public boolean hasSpawnedType()
    • clone

      @NotNull public @NotNull GlowMetaSpawn clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.ItemMeta
      Specified by:
      clone in interface org.bukkit.inventory.meta.SpawnEggMeta
      Overrides:
      clone in class GlowMetaItem
    • getSpawnedType

      public org.bukkit.entity.EntityType getSpawnedType()
      Specified by:
      getSpawnedType in interface org.bukkit.inventory.meta.SpawnEggMeta
    • setSpawnedType

      public void setSpawnedType(org.bukkit.entity.EntityType spawnedType)
      Specified by:
      setSpawnedType in interface org.bukkit.inventory.meta.SpawnEggMeta
    • getEntityTag

      public CompoundTag getEntityTag()
    • setEntityTag

      public void setEntityTag(CompoundTag entityTag)