Files
ms/packages/sponge/src/typings/org.spongepowered.api.block.tileentity.MobSpawner.ts
2019-09-25 09:55:00 +08:00

93 lines
5.4 KiB
TypeScript

declare namespace org {
namespace spongepowered {
namespace api {
namespace block {
namespace tileentity {
// @ts-ignore
interface MobSpawner extends org.spongepowered.api.block.tileentity.TileEntity {
/**
* Trigger an immediate spawn of a batch of entities.
* <p>This will obey the restrictions of maximum nearby entities and player
* range unless the {@code force} flag is set.</p>
*/
// @ts-ignore
spawnEntityBatchImmediately(force: boolean): void;
/**
* Gets the {@link MobSpawnerData} for this mob spawner.
*/
// @ts-ignore
getMobSpawnerData(): org.spongepowered.api.data.manipulator.mutable.MobSpawnerData;
/**
* Gets the {@link MutableBoundedValue} for the remaining delay before
* a new attempt at spawning an {@link Entity} is made.
*/
// @ts-ignore
remainingDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
/**
* Gets the {@link MutableBoundedValue} for the minimum spawn delay
* required between attempts to spawn an {@link Entity}.
*/
// @ts-ignore
minimumSpawnDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
/**
* Gets the {@link MutableBoundedValue} for the maximum spawn delay
* required between attempts to spawn an {@link Entity}.
*/
// @ts-ignore
maximumSpawnDelay(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
/**
* Gets the {@link MutableBoundedValue} for the count of successful
* spawns of all {@link Entity} instances from the owning spawner. This
* count is simply a total count, there is no limitation on how many
* attempts are made to spawn an {@link Entity}.
*/
// @ts-ignore
spawnCount(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
/**
* Gets the {@link MutableBoundedValue} for the limitation on the number
* of nearby {@link Entity} instances can exist near the owning spawner. The
* limitation is that if there are more {@link Entity} instances than the
* provided value, no attempts to spawn a new {@link Entity} will be made.
*/
// @ts-ignore
maximumNearbyEntities(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
/**
* Gets the {@link MutableBoundedValue} for the minimum range a
* {@link Player} must remain in proximity of the spawner, such that if a
* {@link Player} is NOT within the provided range, no attempts to spawn an
* {@link Entity} is made.
*/
// @ts-ignore
requiredPlayerRange(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
/**
* Gets the {@link MutableBoundedValue} for the maximum range that an
* {@link Entity} can be spawned from the spawner.
*/
// @ts-ignore
spawnRange(): org.spongepowered.api.data.value.mutable.MutableBoundedValue;
/**
* Gets the {@link Value}
* for the overridden
* {@link WeightedSerializableObject}{@code <EntitySnapshot>} to spawn
* next. If possible, the next entity to spawn may be chosen from the
* already provided {@link #possibleEntitiesToSpawn()}.
*/
// @ts-ignore
nextEntityToSpawn(): org.spongepowered.api.data.value.mutable.Value;
/**
* Gets the {@link WeightedCollectionValue} of all possible
* {@link Entity} instances that can be spawned by the spawner. As they
* are all {@link WeightedSerializableObject}{@code <EntitySnapshot>}
* instances, their weight is defined as a {@link Random} to determine
* the next {@link Entity} that will be spawned, unless overriden by
* {@link #nextEntityToSpawn()}.
*/
// @ts-ignore
possibleEntitiesToSpawn(): org.spongepowered.api.data.value.mutable.WeightedCollectionValue;
}
}
}
}
}
}