public final class FluidModel extends java.lang.Object implements IModelGeometry<FluidModel>
Modifier and Type | Class and Description |
---|---|
private static class |
FluidModel.BakedFluid |
private static class |
FluidModel.CachingBakedFluid |
Modifier and Type | Field and Description |
---|---|
private Fluid |
fluid |
static FluidModel |
LAVA |
static FluidModel |
WATER |
Constructor and Description |
---|
FluidModel(Fluid fluid) |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPart, getParts
public static final FluidModel WATER
public static final FluidModel LAVA
private final Fluid fluid
public FluidModel(Fluid fluid)
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<FluidModel>
public IBakedModel bake(IModelConfiguration owner, ModelBakery bakery, java.util.function.Function<Material,TextureAtlasSprite> spriteGetter, IModelTransform modelTransform, ItemOverrideList overrides, ResourceLocation modelLocation)
bake
in interface IModelGeometry<FluidModel>