Class GlowCreatureSpawner

java.lang.Object
net.glowstone.block.GlowBlockState
net.glowstone.block.entity.state.GlowCreatureSpawner
All Implemented Interfaces:
org.bukkit.block.BlockState, org.bukkit.block.CreatureSpawner, org.bukkit.block.TileState, org.bukkit.metadata.Metadatable, org.bukkit.persistence.PersistentDataHolder

public class GlowCreatureSpawner extends GlowBlockState implements org.bukkit.block.CreatureSpawner
  • Constructor Details

    • GlowCreatureSpawner

      public GlowCreatureSpawner(GlowBlock block)
      Creates a mob spawner.
      Parameters:
      block - the spawner block
  • Method Details

    • update

      public boolean update(boolean force, boolean applyPhysics)
      Specified by:
      update in interface org.bukkit.block.BlockState
      Overrides:
      update in class GlowBlockState
    • setDelay

      public void setDelay(int i)
      Specified by:
      setDelay in interface org.bukkit.block.CreatureSpawner
    • getMinSpawnDelay

      public int getMinSpawnDelay()
      Specified by:
      getMinSpawnDelay in interface org.bukkit.block.CreatureSpawner
    • setMinSpawnDelay

      public void setMinSpawnDelay(int i)
      Specified by:
      setMinSpawnDelay in interface org.bukkit.block.CreatureSpawner
    • getMaxSpawnDelay

      public int getMaxSpawnDelay()
      Specified by:
      getMaxSpawnDelay in interface org.bukkit.block.CreatureSpawner
    • setMaxSpawnDelay

      public void setMaxSpawnDelay(int i)
      Specified by:
      setMaxSpawnDelay in interface org.bukkit.block.CreatureSpawner
    • getSpawnCount

      public int getSpawnCount()
      Specified by:
      getSpawnCount in interface org.bukkit.block.CreatureSpawner
    • setSpawnCount

      public void setSpawnCount(int i)
      Specified by:
      setSpawnCount in interface org.bukkit.block.CreatureSpawner
    • getMaxNearbyEntities

      public int getMaxNearbyEntities()
      Specified by:
      getMaxNearbyEntities in interface org.bukkit.block.CreatureSpawner
    • setMaxNearbyEntities

      public void setMaxNearbyEntities(int i)
      Specified by:
      setMaxNearbyEntities in interface org.bukkit.block.CreatureSpawner
    • getRequiredPlayerRange

      public int getRequiredPlayerRange()
      Specified by:
      getRequiredPlayerRange in interface org.bukkit.block.CreatureSpawner
    • setRequiredPlayerRange

      public void setRequiredPlayerRange(int i)
      Specified by:
      setRequiredPlayerRange in interface org.bukkit.block.CreatureSpawner
    • getSpawnRange

      public int getSpawnRange()
      Specified by:
      getSpawnRange in interface org.bukkit.block.CreatureSpawner
    • setSpawnRange

      public void setSpawnRange(int i)
      Specified by:
      setSpawnRange in interface org.bukkit.block.CreatureSpawner
    • isActivated

      public boolean isActivated()
      Specified by:
      isActivated in interface org.bukkit.block.CreatureSpawner
    • resetTimer

      public void resetTimer()
      Specified by:
      resetTimer in interface org.bukkit.block.CreatureSpawner
    • setSpawnedItem

      public void setSpawnedItem(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack)
      Specified by:
      setSpawnedItem in interface org.bukkit.block.CreatureSpawner
    • setCreatureTypeByName

      public void setCreatureTypeByName(String creatureType)
      Specified by:
      setCreatureTypeByName in interface org.bukkit.block.CreatureSpawner
    • getCreatureTypeName

      public String getCreatureTypeName()
      Specified by:
      getCreatureTypeName in interface org.bukkit.block.CreatureSpawner
    • getPersistentDataContainer

      @NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()
      Specified by:
      getPersistentDataContainer in interface org.bukkit.persistence.PersistentDataHolder
      Specified by:
      getPersistentDataContainer in interface org.bukkit.block.TileState
    • getSpawnedType

      public org.bukkit.entity.EntityType getSpawnedType()
      Specified by:
      getSpawnedType in interface org.bukkit.block.CreatureSpawner
    • setSpawnedType

      public void setSpawnedType(org.bukkit.entity.EntityType spawnedType)
      Specified by:
      setSpawnedType in interface org.bukkit.block.CreatureSpawner
    • getDelay

      public int getDelay()
      Specified by:
      getDelay in interface org.bukkit.block.CreatureSpawner