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 gsr
-
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 voidvoidrender(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
-
field_32781
private static final float field_32781- See Also:
- Mappings:
Namespace Name Mixin selector named field_32781Lnet/minecraft/client/render/block/FluidRenderer;field_32781:Fintermediary field_32781Lnet/minecraft/class_775;field_32781:Fofficial aLgsr;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 bLgsr;b:[Lhkq;
-
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 cLgsr;c:[Lhkq;
-
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 dLgsr;d:Lhkq;
-
-
Constructor Details
-
FluidRenderer
public FluidRenderer()
-
-
Method Details
-
onResourceReload
protected void onResourceReload()- Mappings:
Namespace Name Mixin selector named onResourceReloadLnet/minecraft/client/render/block/FluidRenderer;onResourceReload()Vintermediary method_3345Lnet/minecraft/class_775;method_3345()Vofficial aLgsr;a()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 aLgsr;a(Leya;Leya;)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 aLgsr;a(Ljc;FLebq;)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 bLgsr;b(Ljc;FLebq;)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 aLgsr;a(Lebq;Ljc;)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 aLgsr;a(Leya;Lebq;Ljc;Leya;)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 aLgsr;a(Ldjk;Liw;Lflg;Lebq;Leya;)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 aLgsr;a(Ldjk;Lexz;FFFLiw;)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 aLgsr;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 aLgsr;a(Ldjk;Lexz;Liw;)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 aLgsr;a(Ldjk;Lexz;Liw;Lebq;Leya;)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 aLgsr;a(Lflg;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 aLgsr;a(Ldjk;Liw;)I
-