Class FluidRenderer
java.lang.Object
net.minecraft.client.render.block.FluidRenderer
- Mappings:
Namespace Name named net/minecraft/client/render/block/FluidRendererintermediary net/minecraft/class_775official hhh
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddHeight(float[] weightedAverageHeight, float height) private floatcalculateFluidHeight(BlockRenderView world, Fluid fluid, float originHeight, float northSouthHeight, float eastWestHeight, BlockPos pos) private floatgetFluidHeight(BlockRenderView world, Fluid fluid, BlockPos pos) private floatgetFluidHeight(BlockRenderView world, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState) private intgetLight(BlockRenderView world, BlockPos pos) private static booleanisOppositeSideCovered(BlockState state, Direction side) private static booleanisSameFluid(FluidState a, FluidState b) private static booleanisSideCovered(Direction side, float height, BlockState state) protected voidonResourceReload(BlockModels blockModels, SpriteHolder spriteHolder) voidrender(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState) static booleanshouldRenderSide(FluidState fluid, BlockState state, Direction side, FluidState fluidFromSide) private static booleanshouldSkipRendering(Direction side, float height, BlockState state) private voidvertex(VertexConsumer vertexConsumer, float x, float y, float z, float red, float green, float blue, float u, float v, int light)
-
Field Details
-
FLUID_HEIGHT
private static final float FLUID_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named FLUID_HEIGHTLnet/minecraft/client/render/block/FluidRenderer;FLUID_HEIGHT:Fintermediary field_32781Lnet/minecraft/class_775;field_32781:Fofficial aLhhh;a:F
-
lavaSprites
- Mappings:
Namespace Name Mixin selector named lavaSpritesLnet/minecraft/client/render/block/FluidRenderer;lavaSprites:[Lnet/minecraft/client/texture/Sprite;intermediary field_4165Lnet/minecraft/class_775;field_4165:[Lnet/minecraft/class_1058;official bLhhh;b:[Lico;
-
waterSprites
- Mappings:
Namespace Name Mixin selector named waterSpritesLnet/minecraft/client/render/block/FluidRenderer;waterSprites:[Lnet/minecraft/client/texture/Sprite;intermediary field_4166Lnet/minecraft/class_775;field_4166:[Lnet/minecraft/class_1058;official cLhhh;c:[Lico;
-
waterOverlaySprite
- Mappings:
Namespace Name Mixin selector named waterOverlaySpriteLnet/minecraft/client/render/block/FluidRenderer;waterOverlaySprite:Lnet/minecraft/client/texture/Sprite;intermediary field_4164Lnet/minecraft/class_775;field_4164:Lnet/minecraft/class_1058;official dLhhh;d:Lico;
-
-
Constructor Details
-
FluidRenderer
public FluidRenderer()
-
-
Method Details
-
onResourceReload
- Mappings:
Namespace Name Mixin selector named onResourceReloadLnet/minecraft/client/render/block/FluidRenderer;onResourceReload(Lnet/minecraft/client/render/block/BlockModels;Lnet/minecraft/client/texture/SpriteHolder;)Vintermediary method_3345Lnet/minecraft/class_775;method_3345(Lnet/minecraft/class_773;Lnet/minecraft/class_11701;)Vofficial aLhhh;a(Lhhf;Lies;)V
-
isSameFluid
- Mappings:
Namespace Name Mixin selector named isSameFluidLnet/minecraft/client/render/block/FluidRenderer;isSameFluid(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/fluid/FluidState;)Zintermediary method_3348Lnet/minecraft/class_775;method_3348(Lnet/minecraft/class_3610;Lnet/minecraft/class_3610;)Zofficial aLhhh;a(Lfga;Lfga;)Z
-
isSideCovered
- Mappings:
Namespace Name Mixin selector named isSideCoveredLnet/minecraft/client/render/block/FluidRenderer;isSideCovered(Lnet/minecraft/util/math/Direction;FLnet/minecraft/block/BlockState;)Zintermediary method_29710Lnet/minecraft/class_775;method_29710(Lnet/minecraft/class_2350;FLnet/minecraft/class_2680;)Zofficial aLhhh;a(Ljg;FLejm;)Z
-
shouldSkipRendering
- Mappings:
Namespace Name Mixin selector named shouldSkipRenderingLnet/minecraft/client/render/block/FluidRenderer;shouldSkipRendering(Lnet/minecraft/util/math/Direction;FLnet/minecraft/block/BlockState;)Zintermediary method_3344Lnet/minecraft/class_775;method_3344(Lnet/minecraft/class_2350;FLnet/minecraft/class_2680;)Zofficial bLhhh;b(Ljg;FLejm;)Z
-
isOppositeSideCovered
- Mappings:
Namespace Name Mixin selector named isOppositeSideCoveredLnet/minecraft/client/render/block/FluidRenderer;isOppositeSideCovered(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Zintermediary method_29709Lnet/minecraft/class_775;method_29709(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Zofficial aLhhh;a(Lejm;Ljg;)Z
-
shouldRenderSide
public static boolean shouldRenderSide(FluidState fluid, BlockState state, Direction side, FluidState fluidFromSide) - Mappings:
Namespace Name Mixin selector named shouldRenderSideLnet/minecraft/client/render/block/FluidRenderer;shouldRenderSide(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/fluid/FluidState;)Zintermediary method_29708Lnet/minecraft/class_775;method_29708(Lnet/minecraft/class_3610;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_3610;)Zofficial aLhhh;a(Lfga;Lejm;Ljg;Lfga;)Z
-
render
public void render(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState) - Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/render/block/FluidRenderer;render(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Vintermediary method_3347Lnet/minecraft/class_775;method_3347(Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;Lnet/minecraft/class_4588;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Vofficial aLhhh;a(Ldqr;Lja;Lfud;Lejm;Lfga;)V
-
calculateFluidHeight
private float calculateFluidHeight(BlockRenderView world, Fluid fluid, float originHeight, float northSouthHeight, float eastWestHeight, BlockPos pos) - Mappings:
Namespace Name Mixin selector named calculateFluidHeightLnet/minecraft/client/render/block/FluidRenderer;calculateFluidHeight(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/fluid/Fluid;FFFLnet/minecraft/util/math/BlockPos;)Fintermediary method_40077Lnet/minecraft/class_775;method_40077(Lnet/minecraft/class_1920;Lnet/minecraft/class_3611;FFFLnet/minecraft/class_2338;)Fofficial aLhhh;a(Ldqr;Lffz;FFFLja;)F
-
addHeight
private void addHeight(float[] weightedAverageHeight, float height) - Mappings:
Namespace Name Mixin selector named addHeightLnet/minecraft/client/render/block/FluidRenderer;addHeight([FF)Vintermediary method_40080Lnet/minecraft/class_775;method_40080([FF)Vofficial aLhhh;a([FF)V
-
getFluidHeight
- Mappings:
Namespace Name Mixin selector named getFluidHeightLnet/minecraft/client/render/block/FluidRenderer;getFluidHeight(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/util/math/BlockPos;)Fintermediary method_40078Lnet/minecraft/class_775;method_40078(Lnet/minecraft/class_1920;Lnet/minecraft/class_3611;Lnet/minecraft/class_2338;)Fofficial aLhhh;a(Ldqr;Lffz;Lja;)F
-
getFluidHeight
private float getFluidHeight(BlockRenderView world, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState) - Mappings:
Namespace Name Mixin selector named getFluidHeightLnet/minecraft/client/render/block/FluidRenderer;getFluidHeight(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/fluid/FluidState;)Fintermediary method_40079Lnet/minecraft/class_775;method_40079(Lnet/minecraft/class_1920;Lnet/minecraft/class_3611;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_3610;)Fofficial aLhhh;a(Ldqr;Lffz;Lja;Lejm;Lfga;)F
-
vertex
private void vertex(VertexConsumer vertexConsumer, float x, float y, float z, float red, float green, float blue, float u, float v, int light) - Mappings:
Namespace Name Mixin selector named vertexLnet/minecraft/client/render/block/FluidRenderer;vertex(Lnet/minecraft/client/render/VertexConsumer;FFFFFFFFI)Vintermediary method_23072Lnet/minecraft/class_775;method_23072(Lnet/minecraft/class_4588;FFFFFFFFI)Vofficial aLhhh;a(Lfud;FFFFFFFFI)V
-
getLight
- Mappings:
Namespace Name Mixin selector named getLightLnet/minecraft/client/render/block/FluidRenderer;getLight(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;)Iintermediary method_3343Lnet/minecraft/class_775;method_3343(Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;)Iofficial aLhhh;a(Ldqr;Lja;)I
-