Class FluidRenderer
java.lang.Object
net.minecraft.client.render.block.FluidRenderer
- Mappings:
Namespace Name intermediary net/minecraft/class_775official fkenamed net/minecraft/client/render/block/FluidRenderer
-
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(BlockView world, BlockPos pos, BlockState state, Direction direction) private static booleanisSameFluid(FluidState a, FluidState b) private static booleanisSideCovered(BlockView world, BlockPos pos, Direction direction, float maxDeviation, BlockState state) private static booleanisSideCovered(BlockView world, Direction direction, float height, BlockPos pos, BlockState state) protected voidvoidrender(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState) static booleanshouldRenderSide(BlockRenderView world, BlockPos pos, FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState) private voidvertex(VertexConsumer vertexConsumer, double x, double y, double z, float red, float green, float blue, float u, float v, int light)
-
Field Details
-
field_32781
private static final float field_32781- See Also:
- Mappings:
Namespace Name Mixin selector intermediary field_32781Lnet/minecraft/class_775;field_32781:Fofficial aLfke;a:Fnamed field_32781Lnet/minecraft/client/render/block/FluidRenderer;field_32781:F
-
lavaSprites
- Mappings:
Namespace Name Mixin selector intermediary field_4165Lnet/minecraft/class_775;field_4165:[Lnet/minecraft/class_1058;official bLfke;b:[Lfuk;named lavaSpritesLnet/minecraft/client/render/block/FluidRenderer;lavaSprites:[Lnet/minecraft/client/texture/Sprite;
-
waterSprites
- Mappings:
Namespace Name Mixin selector intermediary field_4166Lnet/minecraft/class_775;field_4166:[Lnet/minecraft/class_1058;official cLfke;c:[Lfuk;named waterSpritesLnet/minecraft/client/render/block/FluidRenderer;waterSprites:[Lnet/minecraft/client/texture/Sprite;
-
waterOverlaySprite
- Mappings:
Namespace Name Mixin selector intermediary field_4164Lnet/minecraft/class_775;field_4164:Lnet/minecraft/class_1058;official dLfke;d:Lfuk;named waterOverlaySpriteLnet/minecraft/client/render/block/FluidRenderer;waterOverlaySprite:Lnet/minecraft/client/texture/Sprite;
-
-
Constructor Details
-
FluidRenderer
public FluidRenderer()
-
-
Method Details
-
onResourceReload
protected void onResourceReload()- Mappings:
Namespace Name Mixin selector intermediary method_3345Lnet/minecraft/class_775;method_3345()Vofficial aLfke;a()Vnamed onResourceReloadLnet/minecraft/client/render/block/FluidRenderer;onResourceReload()V
-
isSameFluid
- Mappings:
Namespace Name Mixin selector intermediary method_3348Lnet/minecraft/class_775;method_3348(Lnet/minecraft/class_3610;Lnet/minecraft/class_3610;)Zofficial aLfke;a(Ldxb;Ldxb;)Znamed isSameFluidLnet/minecraft/client/render/block/FluidRenderer;isSameFluid(Lnet/minecraft/fluid/FluidState;Lnet/minecraft/fluid/FluidState;)Z
-
isSideCovered
private static boolean isSideCovered(BlockView world, Direction direction, float height, BlockPos pos, BlockState state) - Mappings:
Namespace Name Mixin selector intermediary method_29710Lnet/minecraft/class_775;method_29710(Lnet/minecraft/class_1922;Lnet/minecraft/class_2350;FLnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Zofficial aLfke;a(Lclq;Lha;FLgu;Ldby;)Znamed isSideCoveredLnet/minecraft/client/render/block/FluidRenderer;isSideCovered(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/Direction;FLnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
-
isSideCovered
private static boolean isSideCovered(BlockView world, BlockPos pos, Direction direction, float maxDeviation, BlockState state) - Mappings:
Namespace Name Mixin selector intermediary method_3344Lnet/minecraft/class_775;method_3344(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;FLnet/minecraft/class_2680;)Zofficial aLfke;a(Lclq;Lgu;Lha;FLdby;)Znamed isSideCoveredLnet/minecraft/client/render/block/FluidRenderer;isSideCovered(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;FLnet/minecraft/block/BlockState;)Z
-
isOppositeSideCovered
private static boolean isOppositeSideCovered(BlockView world, BlockPos pos, BlockState state, Direction direction) - Mappings:
Namespace Name Mixin selector intermediary method_29709Lnet/minecraft/class_775;method_29709(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;)Zofficial aLfke;a(Lclq;Lgu;Ldby;Lha;)Znamed isOppositeSideCoveredLnet/minecraft/client/render/block/FluidRenderer;isOppositeSideCovered(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;)Z
-
shouldRenderSide
public static boolean shouldRenderSide(BlockRenderView world, BlockPos pos, FluidState fluidState, BlockState blockState, Direction direction, FluidState neighborFluidState) - Mappings:
Namespace Name Mixin selector intermediary method_29708Lnet/minecraft/class_775;method_29708(Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;Lnet/minecraft/class_3610;Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_3610;)Zofficial aLfke;a(Lcln;Lgu;Ldxb;Ldby;Lha;Ldxb;)Znamed shouldRenderSideLnet/minecraft/client/render/block/FluidRenderer;shouldRenderSide(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/fluid/FluidState;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/fluid/FluidState;)Z
-
render
public void render(BlockRenderView world, BlockPos pos, VertexConsumer vertexConsumer, BlockState blockState, FluidState fluidState) - Mappings:
Namespace Name Mixin selector intermediary 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 aLfke;a(Lcln;Lgu;Leif;Ldby;Ldxb;)Vnamed 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;)V
-
calculateFluidHeight
private float calculateFluidHeight(BlockRenderView world, Fluid fluid, float originHeight, float northSouthHeight, float eastWestHeight, BlockPos pos) - Mappings:
Namespace Name Mixin selector intermediary method_40077Lnet/minecraft/class_775;method_40077(Lnet/minecraft/class_1920;Lnet/minecraft/class_3611;FFFLnet/minecraft/class_2338;)Fofficial aLfke;a(Lcln;Ldxa;FFFLgu;)Fnamed calculateFluidHeightLnet/minecraft/client/render/block/FluidRenderer;calculateFluidHeight(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/fluid/Fluid;FFFLnet/minecraft/util/math/BlockPos;)F
-
addHeight
private void addHeight(float[] weightedAverageHeight, float height) - Mappings:
Namespace Name Mixin selector intermediary method_40080Lnet/minecraft/class_775;method_40080([FF)Vofficial aLfke;a([FF)Vnamed addHeightLnet/minecraft/client/render/block/FluidRenderer;addHeight([FF)V
-
getFluidHeight
- Mappings:
Namespace Name Mixin selector intermediary method_40078Lnet/minecraft/class_775;method_40078(Lnet/minecraft/class_1920;Lnet/minecraft/class_3611;Lnet/minecraft/class_2338;)Fofficial aLfke;a(Lcln;Ldxa;Lgu;)Fnamed getFluidHeightLnet/minecraft/client/render/block/FluidRenderer;getFluidHeight(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/fluid/Fluid;Lnet/minecraft/util/math/BlockPos;)F
-
getFluidHeight
private float getFluidHeight(BlockRenderView world, Fluid fluid, BlockPos pos, BlockState blockState, FluidState fluidState) - Mappings:
Namespace Name Mixin selector intermediary 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 aLfke;a(Lcln;Ldxa;Lgu;Ldby;Ldxb;)Fnamed 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;)F
-
vertex
private void vertex(VertexConsumer vertexConsumer, double x, double y, double z, float red, float green, float blue, float u, float v, int light) - Mappings:
Namespace Name Mixin selector intermediary method_23072Lnet/minecraft/class_775;method_23072(Lnet/minecraft/class_4588;DDDFFFFFI)Vofficial aLfke;a(Leif;DDDFFFFFI)Vnamed vertexLnet/minecraft/client/render/block/FluidRenderer;vertex(Lnet/minecraft/client/render/VertexConsumer;DDDFFFFFI)V
-
getLight
- Mappings:
Namespace Name Mixin selector intermediary method_3343Lnet/minecraft/class_775;method_3343(Lnet/minecraft/class_1920;Lnet/minecraft/class_2338;)Iofficial aLfke;a(Lcln;Lgu;)Inamed getLightLnet/minecraft/client/render/block/FluidRenderer;getLight(Lnet/minecraft/world/BlockRenderView;Lnet/minecraft/util/math/BlockPos;)I
-