Class WaterBlock
Water block that is that top level of a body of water, usually exposed to air and can flow sideways and down.
Inheritance
System.Object
WaterBlock
Assembly: Eco.World.dll
Syntax
[UnderWater]
public class WaterBlock : Block, IWaterBlock, ITickableBlock, IExtraBlockData, IDestroyAwareBlock
Constructors
WaterBlock()
Declaration
WaterBlock(Single)
Declaration
public WaterBlock(float water)
Parameters
Type |
Name |
Description |
System.Single |
water |
|
WaterBlock(Single, Boolean)
Declaration
public WaterBlock(float water, bool pipeSupplied = false)
Parameters
Type |
Name |
Description |
System.Single |
water |
|
System.Boolean |
pipeSupplied |
|
Fields
MaxWater
Declaration
public const float MaxWater = 1F
Field Value
Type |
Description |
System.Single |
|
WaterLoss
Declaration
public const float WaterLoss = 0.1F
Field Value
Type |
Description |
System.Single |
|
Properties
Asleep
Declaration
public bool Asleep { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
PipeSupplied
Declaration
public bool PipeSupplied { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Water
Declaration
public float Water { get; set; }
Property Value
Type |
Description |
System.Single |
|
Methods
Destroyed(Vector3i, Block)
Declaration
public void Destroyed(Vector3i worldPosition, Block replacement)
Parameters
Declaration
public byte GetExtra(Vector3i worldPosition)
Parameters
Type |
Name |
Description |
Vector3i |
worldPosition |
|
Returns
Type |
Description |
System.Byte |
|
Tick(Vector3i, PersistentChunk, PoolableListWrapper<BlockChange>)
Declaration
public void Tick(Vector3i worldPosition, PersistentChunk chunk, PoolableListWrapper<BlockChange> blockChanges)
Parameters
Implements
Extension Methods