public final class DynamicBucketModel extends java.lang.Object implements IModelGeometry<DynamicBucketModel>
Modifier and Type | Class and Description |
---|---|
private static class |
DynamicBucketModel.BakedModel |
private static class |
DynamicBucketModel.ContainedFluidOverrideHandler |
static class |
DynamicBucketModel.Loader |
Modifier and Type | Field and Description |
---|---|
private boolean |
coverIsMask |
private boolean |
flipGas |
private Fluid |
fluid |
static ModelResourceLocation |
LOCATION |
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 and Description |
---|
DynamicBucketModel(Fluid fluid,
boolean flipGas,
boolean tint,
boolean coverIsMask) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelConfiguration owner,
ModelBakery bakery,
java.util.function.Function<Material,TextureAtlasSprite> spriteGetter,
IModelTransform modelTransform,
ItemOverrideList overrides,
ResourceLocation modelLocation) |
java.util.Collection<Material> |
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).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPart, getParts
private static final org.apache.logging.log4j.Logger LOGGER
public static final ModelResourceLocation LOCATION
private static final float NORTH_Z_COVER
private static final float SOUTH_Z_COVER
private static final float NORTH_Z_FLUID
private static final float SOUTH_Z_FLUID
@Nonnull private final Fluid fluid
private final boolean flipGas
private final boolean tint
private final boolean coverIsMask
public DynamicBucketModel(Fluid fluid, boolean flipGas, boolean tint, boolean coverIsMask)
public DynamicBucketModel withFluid(Fluid newFluid)
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
bake
in interface IModelGeometry<DynamicBucketModel>
public java.util.Collection<Material> 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)
getTextures
in interface IModelGeometry<DynamicBucketModel>