VoxelBlockyModelFluid

Inherits: VoxelBlockyModel

Model representing a specific state of a fluid.

Properties:

Type Name Default
VoxelBlockyFluid fluid
int level 0

Constants:

  • MAX_LEVELS = 256 --- Maximum amount of supported fluid levels.

Property Descriptions

VoxelBlockyFluid fluid

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.

int level = 0

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.

Generated on Jan 26, 2026