Package net.glowstone.block.entity.state
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
-
Field Summary
Fields inherited from class net.glowstone.block.GlowBlockState
blockData, data, type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getDelay()
int
int
int
@NotNull org.bukkit.persistence.PersistentDataContainer
int
int
org.bukkit.entity.EntityType
int
boolean
void
void
setCreatureTypeByName
(String creatureType) void
setDelay
(int i) void
setMaxNearbyEntities
(int i) void
setMaxSpawnDelay
(int i) void
setMinSpawnDelay
(int i) void
setRequiredPlayerRange
(int i) void
setSpawnCount
(int i) void
setSpawnedItem
(@NotNull org.bukkit.inventory.ItemStack itemStack) void
setSpawnedType
(org.bukkit.entity.EntityType spawnedType) void
setSpawnRange
(int i) boolean
update
(boolean force, boolean applyPhysics) Methods inherited from class net.glowstone.block.GlowBlockState
canEqual, equals, getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hashCode, hasMetadata, isFlowed, isPlaced, removeMetadata, setBlockData, setData, setFlowed, setMetadata, setRawData, setType, toString, update, update
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.block.BlockState
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
-
Constructor Details
-
GlowCreatureSpawner
Creates a mob spawner.- Parameters:
block
- the spawner block
-
-
Method Details
-
update
public boolean update(boolean force, boolean applyPhysics) - Specified by:
update
in interfaceorg.bukkit.block.BlockState
- Overrides:
update
in classGlowBlockState
-
setDelay
public void setDelay(int i) - Specified by:
setDelay
in interfaceorg.bukkit.block.CreatureSpawner
-
getMinSpawnDelay
public int getMinSpawnDelay()- Specified by:
getMinSpawnDelay
in interfaceorg.bukkit.block.CreatureSpawner
-
setMinSpawnDelay
public void setMinSpawnDelay(int i) - Specified by:
setMinSpawnDelay
in interfaceorg.bukkit.block.CreatureSpawner
-
getMaxSpawnDelay
public int getMaxSpawnDelay()- Specified by:
getMaxSpawnDelay
in interfaceorg.bukkit.block.CreatureSpawner
-
setMaxSpawnDelay
public void setMaxSpawnDelay(int i) - Specified by:
setMaxSpawnDelay
in interfaceorg.bukkit.block.CreatureSpawner
-
getSpawnCount
public int getSpawnCount()- Specified by:
getSpawnCount
in interfaceorg.bukkit.block.CreatureSpawner
-
setSpawnCount
public void setSpawnCount(int i) - Specified by:
setSpawnCount
in interfaceorg.bukkit.block.CreatureSpawner
-
getMaxNearbyEntities
public int getMaxNearbyEntities()- Specified by:
getMaxNearbyEntities
in interfaceorg.bukkit.block.CreatureSpawner
-
setMaxNearbyEntities
public void setMaxNearbyEntities(int i) - Specified by:
setMaxNearbyEntities
in interfaceorg.bukkit.block.CreatureSpawner
-
getRequiredPlayerRange
public int getRequiredPlayerRange()- Specified by:
getRequiredPlayerRange
in interfaceorg.bukkit.block.CreatureSpawner
-
setRequiredPlayerRange
public void setRequiredPlayerRange(int i) - Specified by:
setRequiredPlayerRange
in interfaceorg.bukkit.block.CreatureSpawner
-
getSpawnRange
public int getSpawnRange()- Specified by:
getSpawnRange
in interfaceorg.bukkit.block.CreatureSpawner
-
setSpawnRange
public void setSpawnRange(int i) - Specified by:
setSpawnRange
in interfaceorg.bukkit.block.CreatureSpawner
-
isActivated
public boolean isActivated()- Specified by:
isActivated
in interfaceorg.bukkit.block.CreatureSpawner
-
resetTimer
public void resetTimer()- Specified by:
resetTimer
in interfaceorg.bukkit.block.CreatureSpawner
-
setSpawnedItem
public void setSpawnedItem(@NotNull @NotNull org.bukkit.inventory.ItemStack itemStack) - Specified by:
setSpawnedItem
in interfaceorg.bukkit.block.CreatureSpawner
-
setCreatureTypeByName
- Specified by:
setCreatureTypeByName
in interfaceorg.bukkit.block.CreatureSpawner
-
getCreatureTypeName
- Specified by:
getCreatureTypeName
in interfaceorg.bukkit.block.CreatureSpawner
-
getPersistentDataContainer
@NotNull public @NotNull org.bukkit.persistence.PersistentDataContainer getPersistentDataContainer()- Specified by:
getPersistentDataContainer
in interfaceorg.bukkit.persistence.PersistentDataHolder
- Specified by:
getPersistentDataContainer
in interfaceorg.bukkit.block.TileState
-
getSpawnedType
public org.bukkit.entity.EntityType getSpawnedType()- Specified by:
getSpawnedType
in interfaceorg.bukkit.block.CreatureSpawner
-
setSpawnedType
public void setSpawnedType(org.bukkit.entity.EntityType spawnedType) - Specified by:
setSpawnedType
in interfaceorg.bukkit.block.CreatureSpawner
-
getDelay
public int getDelay()- Specified by:
getDelay
in interfaceorg.bukkit.block.CreatureSpawner
-