Class BaseSpawnConditions
- Namespace
- Vintagestory.API.Common.Entities
- Assembly
- VintagestoryAPI.dll
public class BaseSpawnConditions : ClimateSpawnCondition
- Inheritance
-
BaseSpawnConditions
- Derived
- Inherited Members
Fields
ClimateValueMode
Whether the rain and temperature values are referring to the worldgen values (i.e. yearly averages) or the current values at the moment of spawning
public EnumGetClimateMode ClimateValueMode
Field Value
Companions
Additional companions for the spawn.
public AssetLocation[] Companions
Field Value
Group
The group of the spawn conditions.
public string Group
Field Value
HerdSize
the group size for the spawn.
public NatFloat HerdSize
Field Value
InsideBlockCodes
The blocks that the object will spawn in. (default: air)
public AssetLocation[] InsideBlockCodes
Field Value
InsideBlockCodesBeginsWith
protected string[] InsideBlockCodesBeginsWith
Field Value
- string[]
InsideBlockCodesExact
protected string[] InsideBlockCodesExact
Field Value
- string[]
InsideBlockCodesResolved
protected HashSet<Block> InsideBlockCodesResolved
Field Value
InsideBlockFirstLetters
protected string InsideBlockFirstLetters
Field Value
LightLevelType
The type of light counted for spawning purposes.
public EnumLightLevelType LightLevelType
Field Value
MaxLightLevel
The maximum light level for an object to spawn.
public int MaxLightLevel
Field Value
MinLightLevel
The minimum light level for an object to spawn.
public int MinLightLevel
Field Value
RequireSolidGround
Checks to see if the object requires solid ground.
public bool RequireSolidGround
Field Value
TryOnlySurface
checks to see if the object can only spawn in the surface.
public bool TryOnlySurface
Field Value
Properties
GroupSize
[Obsolete("Use HerdSize instead")]
public NatFloat GroupSize { get; set; }
Property Value
Methods
CanSpawnInside(Block)
public bool CanSpawnInside(Block testBlock)
Parameters
testBlock
Block
Returns
Initialise(IServerWorldAccessor, string, Dictionary<AssetLocation, Block[]>)
public void Initialise(IServerWorldAccessor server, string entityName, Dictionary<AssetLocation, Block[]> searchCache)
Parameters
server
IServerWorldAccessorentityName
stringsearchCache
Dictionary<AssetLocation, Block[]>