public interface MobSpawnerData extends DataManipulator<MobSpawnerData,ImmutableMobSpawnerData>
| Modifier and Type | Method and Description |
|---|---|
MutableBoundedValue<Short> |
maximumNearbyEntities()
Gets the
MutableBoundedValue for the limitation on the number
of nearby Entity instances can exist near the owning spawner. |
MutableBoundedValue<Short> |
maximumSpawnDelay()
Gets the
MutableBoundedValue for the maximum spawn delay
required between attempts to spawn an Entity. |
MutableBoundedValue<Short> |
minimumSpawnDelay()
Gets the
MutableBoundedValue for the minimum spawn delay
required between attempts to spawn an Entity. |
Value<WeightedSerializableObject<EntityArchetype>> |
nextEntityToSpawn()
|
WeightedCollectionValue<EntityArchetype> |
possibleEntitiesToSpawn()
Gets the
WeightedCollectionValue of all possible
Entity instances that can be spawned by the spawner. |
MutableBoundedValue<Short> |
remainingDelay()
Gets the
MutableBoundedValue for the remaining delay before
a new attempt at spawning an Entity is made. |
MutableBoundedValue<Short> |
requiredPlayerRange()
Gets the
MutableBoundedValue for the minimum range a
Player must remain in proximity of the spawner, such that if a
Player is NOT within the provided range, no attempts to spawn an
Entity is made. |
MutableBoundedValue<Short> |
spawnCount()
Gets the
MutableBoundedValue for the count of successful
spawns of all Entity instances from the owning spawner. |
MutableBoundedValue<Short> |
spawnRange()
Gets the
MutableBoundedValue for the maximum range that an
Entity can be spawned from the spawner. |
asImmutable, copy, fill, fill, from, set, set, set, set, transformgetContentVersion, toContainerMutableBoundedValue<Short> remainingDelay()
MutableBoundedValue for the remaining delay before
a new attempt at spawning an Entity is made.Keys.SPAWNER_REMAINING_DELAYMutableBoundedValue<Short> minimumSpawnDelay()
MutableBoundedValue for the minimum spawn delay
required between attempts to spawn an Entity.Keys.SPAWNER_MINIMUM_DELAYMutableBoundedValue<Short> maximumSpawnDelay()
MutableBoundedValue for the maximum spawn delay
required between attempts to spawn an Entity.Keys.SPAWNER_MAXIMUM_DELAYMutableBoundedValue<Short> spawnCount()
MutableBoundedValue for the count of successful
spawns of all 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 Entity.Keys.SPAWNER_SPAWN_COUNTMutableBoundedValue<Short> maximumNearbyEntities()
MutableBoundedValue for the limitation on the number
of nearby Entity instances can exist near the owning spawner. The
limitation is that if there are more Entity instances than the
provided value, no attempts to spawn a new Entity will be made.Keys.SPAWNER_MAXIMUM_NEARBY_ENTITIESMutableBoundedValue<Short> requiredPlayerRange()
MutableBoundedValue for the minimum range a
Player must remain in proximity of the spawner, such that if a
Player is NOT within the provided range, no attempts to spawn an
Entity is made.Keys.SPAWNER_REQUIRED_PLAYER_RANGEMutableBoundedValue<Short> spawnRange()
MutableBoundedValue for the maximum range that an
Entity can be spawned from the spawner.Keys.SPAWNER_SPAWN_RANGEValue<WeightedSerializableObject<EntityArchetype>> nextEntityToSpawn()
Value for the overridden
WeightedSerializableObject<EntityArchetype> to spawn
next. If possible, the next entity to spawn may be chosen from the
already provided possibleEntitiesToSpawn().Keys.SPAWNER_NEXT_ENTITY_TO_SPAWNWeightedCollectionValue<EntityArchetype> possibleEntitiesToSpawn()
WeightedCollectionValue of all possible
Entity instances that can be spawned by the spawner. As they
are all WeightedSerializableObject<EntityArchetype>
instances, their weight is defined as a Random to determine
the next Entity that will be spawned, unless overridden by
nextEntityToSpawn().Keys.SPAWNER_ENTITIES