类 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
. An implementation is provided in
引用无效
ItemColor
.引用无效
Colors
- 另请参阅:
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final boolean
private static final Transformation
private final boolean
private final boolean
private final Fluid
private static final Transformation
-
构造器概要
构造器限定符构造器说明private
DynamicFluidContainerModel
(Fluid fluid, boolean flipGas, boolean coverIsMask, boolean applyFluidLuminosity) -
方法概要
修饰符和类型方法说明bake
(IGeometryBakingContext context, ModelBaker baker, TextureSlots textures, ModelState modelState) static RenderTypeGroup
getLayerRenderTypes
(boolean unlit) Returns a new ModelDynBucket representing the given fluid, but with the same other properties (flipGas, tint, coverIsMask).从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraftforge.client.model.geometry.IUnbakedGeometry
getConfigurableComponentNames, resolveDependencies
-
字段详细资料
-
FLUID_TRANSFORM
-
COVER_TRANSFORM
-
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)
-
-
方法详细资料
-
getLayerRenderTypes
-
withFluid
Returns a new ModelDynBucket representing the given fluid, but with the same other properties (flipGas, tint, coverIsMask). -
bake
public BakedModel bake(IGeometryBakingContext context, ModelBaker baker, TextureSlots textures, ModelState modelState) - 指定者:
bake
在接口中IUnbakedGeometry<DynamicFluidContainerModel>
-