Modifier and Type | Class and Description |
---|---|
private static class |
ModelDynBucket.BakedDynBucket |
private static class |
ModelDynBucket.BakedDynBucketOverrideHandler |
private static class |
ModelDynBucket.BucketBaseSprite |
private static class |
ModelDynBucket.BucketCoverSprite
Creates a bucket cover sprite from the vanilla resource.
|
static class |
ModelDynBucket.LoaderDynBucket |
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
baseLocation |
private ResourceLocation |
coverLocation |
private boolean |
flipGas |
private Fluid |
fluid |
private ResourceLocation |
liquidLocation |
static ModelResourceLocation |
LOCATION |
static IModel |
MODEL |
private static float |
NORTH_Z_COVER |
private static float |
NORTH_Z_FLUID |
private static float |
SOUTH_Z_COVER |
private static float |
SOUTH_Z_FLUID |
private boolean |
tint |
Constructor and Description |
---|
ModelDynBucket() |
ModelDynBucket(ResourceLocation baseLocation,
ResourceLocation liquidLocation,
ResourceLocation coverLocation,
Fluid fluid,
boolean flipGas)
|
ModelDynBucket(ResourceLocation baseLocation,
ResourceLocation liquidLocation,
ResourceLocation coverLocation,
Fluid fluid,
boolean flipGas,
boolean tint) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
java.util.Collection<ResourceLocation> |
getTextures() |
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
asVanillaModel, getClip, getDefaultState, getDependencies, gui3d, smoothLighting, uvlock
public static final ModelResourceLocation LOCATION
private static final float NORTH_Z_COVER
private static final float SOUTH_Z_COVER
private static final float NORTH_Z_FLUID
private static final float SOUTH_Z_FLUID
public static final IModel MODEL
@Nullable private final ResourceLocation baseLocation
@Nullable private final ResourceLocation liquidLocation
@Nullable private final ResourceLocation coverLocation
@Nullable private final Fluid fluid
private final boolean flipGas
private final boolean tint
public ModelDynBucket()
@Deprecated public ModelDynBucket(@Nullable ResourceLocation baseLocation, @Nullable ResourceLocation liquidLocation, @Nullable ResourceLocation coverLocation, @Nullable Fluid fluid, boolean flipGas)
public ModelDynBucket(@Nullable ResourceLocation baseLocation, @Nullable ResourceLocation liquidLocation, @Nullable ResourceLocation coverLocation, @Nullable Fluid fluid, boolean flipGas, boolean tint)
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public ModelDynBucket process(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
public ModelDynBucket retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)