Package design.aeonic.nifty.api.client
Interface FluidRenderInfo
public interface FluidRenderInfo
Exposes rendering info for a given fluid. Obtained from 
PlatformAccess.getFluidRenderInfo(Fluid).- 
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.renderer.texture.TextureAtlasSpritegetFlowingTexture(FluidStack stack) On fabric, just callsgetFlowingTexture(FluidState)with the fluid's default state.net.minecraft.client.renderer.texture.TextureAtlasSpritegetFlowingTexture(net.minecraft.world.level.material.FluidState state) Gets the sprite for the fluid's flowing texture.net.minecraft.client.renderer.texture.TextureAtlasSpritegetStillTexture(FluidStack stack) On fabric, just callsgetFlowingTexture(FluidState)with the fluid's default state.net.minecraft.client.renderer.texture.TextureAtlasSpritegetStillTexture(net.minecraft.world.level.material.FluidState state) Gets the sprite for the fluid's still texture.intgetTintColor(FluidStack stack) On fabric, just callsgetTintColor(FluidState)with the fluid's default state.intgetTintColor(net.minecraft.world.level.material.FluidState state) Gets the tint color of the fluid for the given state. 
- 
Method Details
- 
getStillTexture
On fabric, just callsgetFlowingTexture(FluidState)with the fluid's default state. On forge, might render based on NBT data as Forge's API includes an additional method to render by fluid stack. No guarantees. - 
getStillTexture
net.minecraft.client.renderer.texture.TextureAtlasSprite getStillTexture(net.minecraft.world.level.material.FluidState state) Gets the sprite for the fluid's still texture. - 
getFlowingTexture
On fabric, just callsgetFlowingTexture(FluidState)with the fluid's default state. On forge, might render based on NBT data as Forge's API includes an additional method to render by fluid stack. No guarantees. - 
getFlowingTexture
net.minecraft.client.renderer.texture.TextureAtlasSprite getFlowingTexture(net.minecraft.world.level.material.FluidState state) Gets the sprite for the fluid's flowing texture. - 
getTintColor
On fabric, just callsgetTintColor(FluidState)with the fluid's default state. On forge, might render based on NBT data as Forge's API includes an additional method to render by fluid stack. No guarantees. - 
getTintColor
int getTintColor(net.minecraft.world.level.material.FluidState state) Gets the tint color of the fluid for the given state. 
 -