Package net.minecraftforge.client.model
Class DynamicBucketModel
java.lang.Object
net.minecraftforge.client.model.DynamicBucketModel
- All Implemented Interfaces:
IModelGeometry<DynamicBucketModel>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final booleanprivate final booleanprivate final Fluidprivate static final org.apache.logging.log4j.Loggerprivate static final floatprivate static final floatprivate static final floatprivate static final floatprivate final boolean -
Constructor Summary
ConstructorsConstructorDescriptionDynamicBucketModel(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, waitMethods 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:
-
SOUTH_Z_COVER
private static final float SOUTH_Z_COVER- See Also:
-
NORTH_Z_FLUID
private static final float NORTH_Z_FLUID- See Also:
-
SOUTH_Z_FLUID
private static final float SOUTH_Z_FLUID- See Also:
-
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:
bakein interfaceIModelGeometry<DynamicBucketModel>
-
getTextures
public Collection<Material> getTextures(IModelConfiguration owner, Function<ResourceLocation, UnbakedModel> modelGetter, Set<com.mojang.datafixers.util.Pair<String, String>> missingTextureErrors) - Specified by:
getTexturesin interfaceIModelGeometry<DynamicBucketModel>
-