public final class ModelDynBucket extends java.lang.Object implements IUnbakedModel
Modifier and Type | Class and Description |
---|---|
static class |
ModelDynBucket.LoaderDynBucket |
Modifier and Type | Field and Description |
---|---|
static ModelResourceLocation |
LOCATION |
static IUnbakedModel |
MODEL |
Constructor and Description |
---|
ModelDynBucket() |
ModelDynBucket(ResourceLocation baseLocation,
ResourceLocation liquidLocation,
ResourceLocation coverLocation,
Fluid fluid,
boolean flipGas,
boolean tint) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter,
IModelState state,
boolean uvlock,
VertexFormat format) |
java.util.Collection<ResourceLocation> |
getOverrideLocations() |
protected static IResource |
getResource(ResourceLocation resourceLocation) |
protected static PngSizeInfo |
getSizeInfo(IResource resource) |
java.util.Collection<ResourceLocation> |
getTextures(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter,
java.util.Set<java.lang.String> missingTextureErrors) |
ModelDynBucket |
process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
Sets the fluid 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bake
getClip, getDefaultState, gui3d, smoothLighting
public static final ModelResourceLocation LOCATION
public static final IUnbakedModel MODEL
public ModelDynBucket()
public ModelDynBucket(@Nullable ResourceLocation baseLocation, @Nullable ResourceLocation liquidLocation, @Nullable ResourceLocation coverLocation, @Nullable Fluid fluid, boolean flipGas, boolean tint)
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> getOverrideLocations()
getOverrideLocations
in interface IUnbakedModel
public IBakedModel bake(java.util.function.Function<ResourceLocation,IUnbakedModel> modelGetter, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter, IModelState state, boolean uvlock, VertexFormat format)
bake
in interface IModel<IUnbakedModel>
public ModelDynBucket process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
process
in interface IModel<IUnbakedModel>
public ModelDynBucket retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
retexture
in interface IModel<IUnbakedModel>
textures
- New@Nullable protected static IResource getResource(ResourceLocation resourceLocation)
@Nullable protected static PngSizeInfo getSizeInfo(IResource resource)