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:
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • FLUID_TRANSFORM

      private static final Transformation FLUID_TRANSFORM
    • COVER_TRANSFORM

      private static final Transformation COVER_TRANSFORM
    • fluid

      private final Fluid fluid
    • flipGas

      private final boolean flipGas
    • coverIsMask

      private final boolean coverIsMask
    • applyFluidLuminosity

      private final boolean applyFluidLuminosity
    • deprecatedLoader

      private final boolean deprecatedLoader
    • deprecationWarnings

      private final Map<String,String> deprecationWarnings
  • Constructor Details

    • DynamicFluidContainerModel

      public DynamicFluidContainerModel(Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity)
    • DynamicFluidContainerModel

      private DynamicFluidContainerModel(Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity, boolean deprecatedLoader, Map<String,String> deprecationWarnings)
  • Method Details