Package net.minecraftforge.client.model
Class FluidModel
- java.lang.Object
-
- net.minecraftforge.client.model.FluidModel
-
- All Implemented Interfaces:
IModelGeometry<FluidModel>
public final class FluidModel extends java.lang.Object implements IModelGeometry<FluidModel>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
FluidModel.BakedFluid
private static class
FluidModel.CachingBakedFluid
-
Field Summary
Fields Modifier and Type Field Description private Fluid
fluid
static FluidModel
LAVA
static FluidModel
WATER
-
Constructor Summary
Constructors Constructor Description FluidModel(Fluid fluid)
-
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)
-
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
-
WATER
public static final FluidModel WATER
-
LAVA
public static final FluidModel LAVA
-
fluid
private final Fluid fluid
-
-
Constructor Detail
-
FluidModel
public FluidModel(Fluid fluid)
-
-
Method Detail
-
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<FluidModel>
-
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<FluidModel>
-
-