public interface CreatureSpawner extends BlockState
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getCreatureTypeName()
已过时。
不安全的参数,请使用
getSpawnedType() . |
int |
getDelay()
获取刷怪笼的刷怪延迟.
|
int |
getMaxNearbyEntities()
Set the new maximum amount of similar entities that are allowed to be
within spawning range of this spawner.
|
int |
getMaxSpawnDelay()
The maximum spawn delay amount (in ticks).
|
int |
getMinSpawnDelay()
The minimum spawn delay amount (in ticks).
|
int |
getRequiredPlayerRange()
Get the maximum distance(squared) a player can be in order for this
spawner to be active.
|
int |
getSpawnCount()
Get how many mobs attempt to spawn.
|
EntityType |
getSpawnedType()
获取刷怪笼的类型.
|
int |
getSpawnRange()
Get the radius around which the spawner will attempt to spawn mobs in.
|
void |
setCreatureTypeByName(java.lang.String creatureType)
已过时。
不安全的参数,请使用
setSpawnedType(org.bukkit.entity.EntityType) . |
void |
setDelay(int delay)
设置刷怪笼刷怪延迟.
|
void |
setMaxNearbyEntities(int maxNearbyEntities)
Set the maximum number of similar entities that are allowed to be within
spawning range of this spawner.
|
void |
setMaxSpawnDelay(int delay)
Set the maximum spawn delay amount (in ticks).
|
void |
setMinSpawnDelay(int delay)
Set the minimum spawn delay amount (in ticks).
|
void |
setRequiredPlayerRange(int requiredPlayerRange)
Set the maximum distance (squared) a player can be in order for this
spawner to be active.
|
void |
setSpawnCount(int spawnCount)
Set how many mobs attempt to spawn.
|
void |
setSpawnedType(EntityType creatureType)
设置刷怪笼的类型.
|
void |
setSpawnRange(int spawnRange)
Set the new spawn range.
|
getBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, update
getMetadata, hasMetadata, removeMetadata, setMetadata
EntityType getSpawnedType()
原文: Get the spawner's creature type.
void setSpawnedType(EntityType creatureType)
原文: Set the spawner's creature type.
creatureType
- 刷怪笼的类型.@Deprecated void setCreatureTypeByName(java.lang.String creatureType)
setSpawnedType(org.bukkit.entity.EntityType)
.原文 Set the spawner mob type.
creatureType
- 刷怪笼类型的名称.@Deprecated java.lang.String getCreatureTypeName()
getSpawnedType()
.原文: Get the spawner's creature type.
int getDelay()
原文:
Get the spawner's delay.
This is the delay, in ticks, until the spawner will spawn its next mob.
void setDelay(int delay)
getMinSpawnDelay()
和getMaxSpawnDelay()
之间).
原文:
Set the spawner's delay.
If set to -1, the spawn delay will be reset to a random value between
getMinSpawnDelay()
and getMaxSpawnDelay()
.
delay
- 延迟.int getMinSpawnDelay()
getMinSpawnDelay()
and getMaxSpawnDelay()
for its next getDelay()
.
Default value is 200 ticks.void setMinSpawnDelay(int delay)
delay
- the minimum spawn delay amountgetMinSpawnDelay()
int getMaxSpawnDelay()
getMinSpawnDelay()
and getMaxSpawnDelay()
for its next getDelay()
.
getMaxSpawnDelay()
.
Default value is 800 ticks.void setMaxSpawnDelay(int delay)
getMinSpawnDelay()
delay
- the new maximum spawn delay amountgetMaxSpawnDelay()
int getSpawnCount()
void setSpawnCount(int spawnCount)
spawnCount
- the new spawn countint getMaxNearbyEntities()
getDelay()
.
void setMaxNearbyEntities(int maxNearbyEntities)
EntityType
maxNearbyEntities
- the maximum number of nearby, similar, entitiesint getRequiredPlayerRange()
void setRequiredPlayerRange(int requiredPlayerRange)
requiredPlayerRange
- the maximum distance (squared) a player can be
in order for this spawner to be active.int getSpawnRange()
void setSpawnRange(int spawnRange)
spawnRange
- the new spawn rangegetSpawnRange()