public final class ModelFluid extends java.lang.Object implements IUnbakedModel
Modifier and Type | Class and Description |
---|---|
static class |
ModelFluid.FluidLoader |
Modifier and Type | Field and Description |
---|---|
static ModelFluid |
LAVA |
static ModelFluid |
WATER |
Constructor and Description |
---|
ModelFluid(Fluid fluid) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(ModelBakery bakery,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter,
ISprite sprite,
VertexFormat format) |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.Collection<ResourceLocation> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors) |
ModelFluid |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
Allows the model to process custom data from the variant definition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bake
getDefaultState, gui3d, retexture, smoothLighting
getClip
public static final ModelFluid WATER
public static final ModelFluid LAVA
public ModelFluid(Fluid fluid)
public java.util.Collection<ResourceLocation> getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.Set<java.lang.String> missingTextureErrors)
getTextures
in interface IUnbakedModel
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IUnbakedModel
@Nullable public IBakedModel bake(ModelBakery bakery, java.util.function.Function<ResourceLocation,TextureAtlasSprite> spriteGetter, ISprite sprite, VertexFormat format)
bake
in interface IForgeUnbakedModel
spriteGetter
- Where textures will be looked up when bakingsprite
- Transforms to apply while baking. Usually will be an instance of IModelState
.public ModelFluid process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
IModel
process
in interface IModel<IUnbakedModel>