public class BlockFluidRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private TextureAtlasSprite[] |
atlasSpritesLava |
private TextureAtlasSprite[] |
atlasSpritesWater |
private TextureAtlasSprite |
atlasSpriteWaterOverlay |
private BlockColors |
blockColors |
Constructor and Description |
---|
BlockFluidRenderer(BlockColors blockColorsIn) |
Modifier and Type | Method and Description |
---|---|
private float |
getFluidHeight(IBlockAccess blockAccess,
BlockPos blockPosIn,
Material blockMaterial) |
protected void |
initAtlasSprites() |
boolean |
renderFluid(IBlockAccess blockAccess,
IBlockState blockStateIn,
BlockPos blockPosIn,
BufferBuilder bufferBuilderIn) |
private final BlockColors blockColors
private final TextureAtlasSprite[] atlasSpritesLava
private final TextureAtlasSprite[] atlasSpritesWater
private TextureAtlasSprite atlasSpriteWaterOverlay
public BlockFluidRenderer(BlockColors blockColorsIn)
protected void initAtlasSprites()
public boolean renderFluid(IBlockAccess blockAccess, IBlockState blockStateIn, BlockPos blockPosIn, BufferBuilder bufferBuilderIn)
private float getFluidHeight(IBlockAccess blockAccess, BlockPos blockPosIn, Material blockMaterial)