public class FluidBlockRenderer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private TextureAtlasSprite[] |
atlasSpritesLava |
private TextureAtlasSprite[] |
atlasSpritesWater |
private TextureAtlasSprite |
atlasSpriteWaterOverlay |
Constructor and Description |
---|
FluidBlockRenderer() |
Modifier and Type | Method and Description |
---|---|
private int |
getCombinedAverageLight(ILightReader lightReaderIn,
BlockPos posIn) |
private float |
getFluidHeight(IBlockReader reader,
BlockPos pos,
Fluid fluidIn) |
protected void |
initAtlasSprites() |
private static boolean |
isAdjacentFluidSameAs(IBlockReader worldIn,
BlockPos pos,
Direction side,
IFluidState state) |
private static boolean |
isNeighbourSideCovered(IBlockReader reader,
BlockPos pos,
Direction face,
float heightIn) |
boolean |
render(ILightReader lightReaderIn,
BlockPos posIn,
IVertexBuilder vertexBuilderIn,
IFluidState fluidStateIn) |
private void |
vertex(IVertexBuilder vertexBuilderIn,
double x,
double y,
double z,
float red,
float green,
float blue,
float alpha,
float u,
float v,
int packedLight) |
private void |
vertexVanilla(IVertexBuilder vertexBuilderIn,
double x,
double y,
double z,
float red,
float green,
float blue,
float u,
float v,
int packedLight)
Deprecated.
|
private final TextureAtlasSprite[] atlasSpritesLava
private final TextureAtlasSprite[] atlasSpritesWater
private TextureAtlasSprite atlasSpriteWaterOverlay
protected void initAtlasSprites()
private static boolean isAdjacentFluidSameAs(IBlockReader worldIn, BlockPos pos, Direction side, IFluidState state)
private static boolean isNeighbourSideCovered(IBlockReader reader, BlockPos pos, Direction face, float heightIn)
public boolean render(ILightReader lightReaderIn, BlockPos posIn, IVertexBuilder vertexBuilderIn, IFluidState fluidStateIn)
@Deprecated private void vertexVanilla(IVertexBuilder vertexBuilderIn, double x, double y, double z, float red, float green, float blue, float u, float v, int packedLight)
private void vertex(IVertexBuilder vertexBuilderIn, double x, double y, double z, float red, float green, float blue, float alpha, float u, float v, int packedLight)
private int getCombinedAverageLight(ILightReader lightReaderIn, BlockPos posIn)
private float getFluidHeight(IBlockReader reader, BlockPos pos, Fluid fluidIn)