@@ -1,36 +1,37 @@
|
||||
declare namespace org {
|
||||
namespace bukkit {
|
||||
namespace block {
|
||||
class CreatureSpawner {
|
||||
// @ts-ignore
|
||||
interface CreatureSpawner extends org.bukkit.block.TileState {
|
||||
/**
|
||||
* Get the spawner's creature type.
|
||||
*/
|
||||
public getSpawnedType(): org.bukkit.entity.EntityType;
|
||||
getSpawnedType(): org.bukkit.entity.EntityType;
|
||||
/**
|
||||
* Set the spawner's creature type.
|
||||
*/
|
||||
public setSpawnedType(creatureType: org.bukkit.entity.EntityType): void;
|
||||
setSpawnedType(creatureType: org.bukkit.entity.EntityType): void;
|
||||
/**
|
||||
* Set the spawner mob type.
|
||||
*/
|
||||
public setCreatureTypeByName(creatureType: string): void;
|
||||
setCreatureTypeByName(creatureType: string): void;
|
||||
/**
|
||||
* Get the spawner's creature type.
|
||||
*/
|
||||
public getCreatureTypeName(): string;
|
||||
getCreatureTypeName(): string;
|
||||
/**
|
||||
* Get the spawner's delay.
|
||||
* <br>
|
||||
* This is the delay, in ticks, until the spawner will spawn its next mob.
|
||||
*/
|
||||
public getDelay(): number;
|
||||
getDelay(): number;
|
||||
/**
|
||||
* Set the spawner's delay.
|
||||
* <br>
|
||||
* If set to -1, the spawn delay will be reset to a random value between
|
||||
* {@link #getMinSpawnDelay} and {@link #getMaxSpawnDelay()}.
|
||||
*/
|
||||
public setDelay(delay: number): void;
|
||||
setDelay(delay: number): void;
|
||||
/**
|
||||
* The minimum spawn delay amount (in ticks).
|
||||
* <br>
|
||||
@@ -39,11 +40,11 @@ declare namespace org {
|
||||
* and {@link #getMaxSpawnDelay()} for its next {@link #getDelay()}.
|
||||
* Default value is 200 ticks.
|
||||
*/
|
||||
public getMinSpawnDelay(): number;
|
||||
getMinSpawnDelay(): number;
|
||||
/**
|
||||
* Set the minimum spawn delay amount (in ticks).
|
||||
*/
|
||||
public setMinSpawnDelay(delay: number): void;
|
||||
setMinSpawnDelay(delay: number): void;
|
||||
/**
|
||||
* The maximum spawn delay amount (in ticks).
|
||||
* <br>
|
||||
@@ -55,24 +56,24 @@ declare namespace org {
|
||||
* {@link #getMaxSpawnDelay()}.
|
||||
* Default value is 800 ticks.
|
||||
*/
|
||||
public getMaxSpawnDelay(): number;
|
||||
getMaxSpawnDelay(): number;
|
||||
/**
|
||||
* Set the maximum spawn delay amount (in ticks).
|
||||
* <br>
|
||||
* This value <b>must</b> be greater than 0, as well as greater than or
|
||||
* equal to {@link #getMinSpawnDelay()}
|
||||
*/
|
||||
public setMaxSpawnDelay(delay: number): void;
|
||||
setMaxSpawnDelay(delay: number): void;
|
||||
/**
|
||||
* Get how many mobs attempt to spawn.
|
||||
* <br>
|
||||
* Default value is 4.
|
||||
*/
|
||||
public getSpawnCount(): number;
|
||||
getSpawnCount(): number;
|
||||
/**
|
||||
* Set how many mobs attempt to spawn.
|
||||
*/
|
||||
public setSpawnCount(spawnCount: number): void;
|
||||
setSpawnCount(spawnCount: number): void;
|
||||
/**
|
||||
* Set the new maximum amount of similar entities that are allowed to be
|
||||
* within spawning range of this spawner.
|
||||
@@ -82,14 +83,14 @@ declare namespace org {
|
||||
* <br>
|
||||
* Default value is 16.
|
||||
*/
|
||||
public getMaxNearbyEntities(): number;
|
||||
getMaxNearbyEntities(): number;
|
||||
/**
|
||||
* Set the maximum number of similar entities that are allowed to be within
|
||||
* spawning range of this spawner.
|
||||
* <br>
|
||||
* Similar entities are entities that are of the same {@link EntityType}
|
||||
*/
|
||||
public setMaxNearbyEntities(maxNearbyEntities: number): void;
|
||||
setMaxNearbyEntities(maxNearbyEntities: number): void;
|
||||
/**
|
||||
* Get the maximum distance(squared) a player can be in order for this
|
||||
* spawner to be active.
|
||||
@@ -99,7 +100,7 @@ declare namespace org {
|
||||
* <br>
|
||||
* Default value is 16.
|
||||
*/
|
||||
public getRequiredPlayerRange(): number;
|
||||
getRequiredPlayerRange(): number;
|
||||
/**
|
||||
* Set the maximum distance (squared) a player can be in order for this
|
||||
* spawner to be active.
|
||||
@@ -107,7 +108,7 @@ declare namespace org {
|
||||
* Setting this value to less than or equal to 0 will make this spawner
|
||||
* always active (given that there are players online).
|
||||
*/
|
||||
public setRequiredPlayerRange(requiredPlayerRange: number): void;
|
||||
setRequiredPlayerRange(requiredPlayerRange: number): void;
|
||||
/**
|
||||
* Get the radius around which the spawner will attempt to spawn mobs in.
|
||||
* <br>
|
||||
@@ -120,12 +121,12 @@ declare namespace org {
|
||||
* <br>
|
||||
* Default value is 4.
|
||||
*/
|
||||
public getSpawnRange(): number;
|
||||
getSpawnRange(): number;
|
||||
/**
|
||||
* Set the new spawn range.
|
||||
* <br>
|
||||
*/
|
||||
public setSpawnRange(spawnRange: number): void;
|
||||
setSpawnRange(spawnRange: number): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user