public final class ModelDynBucket extends java.lang.Object implements IModel, IModelCustomData, IRetexturableModel
| Modifier and Type | Class and Description |
|---|---|
static class |
ModelDynBucket.LoaderDynBucket |
| Modifier and Type | Field and Description |
|---|---|
static ModelResourceLocation |
LOCATION |
static IModel |
MODEL |
| Constructor and Description |
|---|
ModelDynBucket() |
ModelDynBucket(ResourceLocation baseLocation,
ResourceLocation liquidLocation,
ResourceLocation coverLocation,
Fluid fluid,
boolean flipGas) |
| Modifier and Type | Method and Description |
|---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
com.google.common.base.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
IModelState |
getDefaultState() |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.Collection<ResourceLocation> |
getTextures() |
ModelDynBucket |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
Sets the liquid in the model.
|
ModelDynBucket |
retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
Allows to use different textures for the model.
|
public static final ModelResourceLocation LOCATION
public static final IModel MODEL
public ModelDynBucket()
public ModelDynBucket(@Nullable
ResourceLocation baseLocation,
@Nullable
ResourceLocation liquidLocation,
@Nullable
ResourceLocation coverLocation,
@Nullable
Fluid fluid,
boolean flipGas)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies in interface IModelpublic java.util.Collection<ResourceLocation> getTextures()
getTextures in interface IModelpublic IBakedModel bake(IModelState state, VertexFormat format, com.google.common.base.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public IModelState getDefaultState()
getDefaultState in interface IModelpublic ModelDynBucket process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
process in interface IModelCustomDatapublic ModelDynBucket retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
retexture in interface IRetexturableModeltextures - New