类 DynamicFluidContainerModel

java.lang.Object
net.minecraftforge.client.model.DynamicFluidContainerModel
所有已实现的接口:
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
引用无效
Colors
.
另请参阅:
  • 引用无效
    Colors
  • 字段详细资料

    • 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
  • 构造器详细资料

    • DynamicFluidContainerModel

      private DynamicFluidContainerModel(Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity)
  • 方法详细资料