Class DynamicFluidContainerModel

java.lang.Object
net.minecraftforge.client.model.DynamicFluidContainerModel
All Implemented Interfaces:
IUnbakedGeometry<DynamicFluidContainerModel>

public class DynamicFluidContainerModel extends Object implements IUnbakedGeometry<DynamicFluidContainerModel>
A dynamic fluid container model, capable of re-texturing itself at runtime to match the contained fluid.

Composed of a base layer, a fluid layer (applied with a mask) and a cover layer (optionally applied with a mask). The entire model may optionally be flipped if the fluid is gaseous, and the fluid layer may glow if light-emitting.

Fluid tinting requires registering a separate ItemColor. An implementation is provided in DynamicFluidContainerModel.Colors.

See Also: