public class ModelDynBucket extends java.lang.Object implements IModel, IModelCustomData<ModelDynBucket>, IRetexturableModel<ModelDynBucket>
Modifier and Type | Class and Description |
---|---|
protected static class |
ModelDynBucket.BakedDynBucket |
static class |
ModelDynBucket.LoaderDynBucket |
Modifier and Type | Field and Description |
---|---|
protected ResourceLocation |
baseLocation |
protected ResourceLocation |
coverLocation |
protected boolean |
flipGas |
protected Fluid |
fluid |
protected ResourceLocation |
liquidLocation |
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 |
---|---|
IFlexibleBakedModel |
bake(IModelState state,
VertexFormat format,
<any> bakedTextureGetter) |
IModelState |
getDefaultState() |
java.util.Collection<ResourceLocation> |
getDependencies() |
java.util.Collection<ResourceLocation> |
getTextures() |
IModel |
process(<any> customData)
Sets the liquid in the model.
|
IModel |
retexture(<any> textures)
Allows to use different textures for the model.
|
public static final ModelResourceLocation LOCATION
public static final IModel MODEL
protected final ResourceLocation baseLocation
protected final ResourceLocation liquidLocation
protected final ResourceLocation coverLocation
protected final Fluid fluid
protected final boolean flipGas
public ModelDynBucket()
public ModelDynBucket(ResourceLocation baseLocation, ResourceLocation liquidLocation, ResourceLocation coverLocation, Fluid fluid, boolean flipGas)
public java.util.Collection<ResourceLocation> getDependencies()
getDependencies
in interface IModel
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public IFlexibleBakedModel bake(IModelState state, VertexFormat format, <any> bakedTextureGetter)
public IModelState getDefaultState()
getDefaultState
in interface IModel
public IModel process(<any> customData)
process
in interface IModelCustomData<ModelDynBucket>
public IModel retexture(<any> textures)
retexture
in interface IRetexturableModel<ModelDynBucket>
textures
- New