Package net.minecraftforge.client.model
Class DynamicBucketModel
java.lang.Object
net.minecraftforge.client.model.DynamicBucketModel
- All Implemented Interfaces:
IModelGeometry<DynamicBucketModel>
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private Fluid
private static org.apache.logging.log4j.Logger
private static float
private static float
private static float
private static float
private boolean
-
Constructor Summary
ConstructorDescriptionDynamicBucketModel(Fluid fluid, boolean flipGas, boolean tint, boolean coverIsMask)
Deprecated.DynamicBucketModel(Fluid fluid, boolean flipGas, boolean tint, boolean coverIsMask, boolean applyFluidLuminosity)
-
Method Summary
Modifier and TypeMethodDescriptionbake(IModelConfiguration owner, ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)
getTextures(IModelConfiguration owner, Function<ResourceLocation,UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)
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 Details
-
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
-
flipGas
private final boolean flipGas -
tint
private final boolean tint -
coverIsMask
private final boolean coverIsMask -
applyFluidLuminosity
private final boolean applyFluidLuminosity
-
-
Constructor Details
-
DynamicBucketModel
@Deprecated public DynamicBucketModel(Fluid fluid, boolean flipGas, boolean tint, boolean coverIsMask)Deprecated. -
DynamicBucketModel
public DynamicBucketModel(Fluid fluid, boolean flipGas, boolean tint, boolean coverIsMask, boolean applyFluidLuminosity)
-
-
Method Details
-
withFluid
Returns a new ModelDynBucket representing the given fluid, but with the same other properties (flipGas, tint, coverIsMask). -
bake
public BakedModel bake(IModelConfiguration owner, ModelBakery bakery, Function<Material,TextureAtlasSprite> spriteGetter, ModelState modelTransform, ItemOverrides overrides, ResourceLocation modelLocation)- Specified by:
bake
in interfaceIModelGeometry<DynamicBucketModel>
-
getTextures
public Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation,UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String,String>> missingTextureErrors)- Specified by:
getTextures
in interfaceIModelGeometry<DynamicBucketModel>
-