VoxelBlockyModelFluid
Model representing a specific state of a fluid.
Model representing a specific state of a fluid.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VoxelBlockyModelFluidConstructor
public VoxelBlockyModelFluid();Properties2
FluidProperty
public VoxelBlockyFluid Fluid { get; set; }Which fluid this model is part of. Note, fluid resources are supposed to be shared between multiple models, in order to make those models recognized as states of that fluid.
LevelProperty
public int Level { get; set; }Fluid level, usually representing how much fluid the model contains. Levels should start from 0, and must be lower than 256. Fluids can have multiple models with the same level. It is also preferable to define at least one model per level (avoid missing levels). It is also recommended to assign models with consecutive levels to consecutive library IDs, however this is not required.
Methods4
GetFluidVoxelBlockyFluid
public VoxelBlockyFluid GetFluid();VoxelBlockyFluidGetLevelint
public int GetLevel();intSetFluidvoid
public void SetFluid(VoxelBlockyFluid fluid);| Name | Type | Default |
|---|---|---|
fluid | VoxelBlockyFluid | — |
SetLevelvoid
public void SetLevel(int level);| Name | Type | Default |
|---|---|---|
level | int | — |
Fields and constants1
MaxLevelsField
public const long MaxLevels = 256;Maximum amount of supported fluid levels.