Package net.minecraftforge.client.model
Class DynamicBucketModel
- java.lang.Object
-
- net.minecraftforge.client.model.DynamicBucketModel
-
- All Implemented Interfaces:
IModelGeometry<DynamicBucketModel>
public final class DynamicBucketModel extends java.lang.Object implements IModelGeometry<DynamicBucketModel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DynamicBucketModel.ContainedFluidOverrideHandler
static class
DynamicBucketModel.Loader
-
Field Summary
Fields Modifier and Type Field Description private boolean
applyFluidLuminosity
private boolean
coverIsMask
private boolean
flipGas
private Fluid
fluid
private static org.apache.logging.log4j.Logger
LOGGER
private static float
NORTH_Z_COVER
private static float
NORTH_Z_FLUID
private static float
SOUTH_Z_COVER
private static float
SOUTH_Z_FLUID
private boolean
tint
-
Constructor Summary
Constructors Constructor Description DynamicBucketModel(Fluid fluid, boolean flipGas, boolean tint, boolean coverIsMask)
Deprecated.DynamicBucketModel(Fluid fluid, boolean flipGas, boolean tint, boolean coverIsMask, boolean applyFluidLuminosity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBakedModel
bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
java.util.Collection<RenderMaterial>
getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
DynamicBucketModel
withFluid(Fluid newFluid)
Returns a new ModelDynBucket representing the given fluid, but with the same other properties (flipGas, tint, coverIsMask).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraftforge.client.model.geometry.IModelGeometry
getPart, getParts
-
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
NORTH_Z_COVER
private static final float NORTH_Z_COVER
- See Also:
- Constant Field Values
-
SOUTH_Z_COVER
private static final float SOUTH_Z_COVER
- See Also:
- Constant Field Values
-
NORTH_Z_FLUID
private static final float NORTH_Z_FLUID
- See Also:
- Constant Field Values
-
SOUTH_Z_FLUID
private static final float SOUTH_Z_FLUID
- See Also:
- Constant Field Values
-
fluid
@Nonnull private final Fluid fluid
-
flipGas
private final boolean flipGas
-
tint
private final boolean tint
-
coverIsMask
private final boolean coverIsMask
-
applyFluidLuminosity
private final boolean applyFluidLuminosity
-
-
Method Detail
-
withFluid
public DynamicBucketModel withFluid(Fluid newFluid)
Returns a new ModelDynBucket representing the given fluid, but with the same other properties (flipGas, tint, coverIsMask).
-
bake
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<RenderMaterial,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
- Specified by:
bake
in interfaceIModelGeometry<DynamicBucketModel>
-
getTextures
public java.util.Collection<RenderMaterial> getTextures(IModelConfiguration owner, java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<com.mojang.datafixers.util.Pair<java.lang.String,java.lang.String>> missingTextureErrors)
- Specified by:
getTextures
in interfaceIModelGeometry<DynamicBucketModel>
-
-