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, transform
getContentVersion, toContainer
MutableBoundedValue<Short> remainingDelay()
MutableBoundedValue
for the remaining delay before
a new attempt at spawning an Entity
is made.Keys.SPAWNER_REMAINING_DELAY
MutableBoundedValue<Short> minimumSpawnDelay()
MutableBoundedValue
for the minimum spawn delay
required between attempts to spawn an Entity
.Keys.SPAWNER_MINIMUM_DELAY
MutableBoundedValue<Short> maximumSpawnDelay()
MutableBoundedValue
for the maximum spawn delay
required between attempts to spawn an Entity
.Keys.SPAWNER_MAXIMUM_DELAY
MutableBoundedValue<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_COUNT
MutableBoundedValue<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_ENTITIES
MutableBoundedValue<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_RANGE
MutableBoundedValue<Short> spawnRange()
MutableBoundedValue
for the maximum range that an
Entity
can be spawned from the spawner.Keys.SPAWNER_SPAWN_RANGE
Value<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_SPAWN
WeightedCollectionValue<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