Package dev.architectury.hooks.fluid
Class LiquidBlockHooks
java.lang.Object
dev.architectury.hooks.fluid.LiquidBlockHooks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.level.material.FlowingFluid
getFluid
(net.minecraft.world.level.block.LiquidBlock block) Returns the fluid contained in the liquid block.
-
Constructor Details
-
LiquidBlockHooks
public LiquidBlockHooks()
-
-
Method Details
-
getFluid
public static net.minecraft.world.level.material.FlowingFluid getFluid(net.minecraft.world.level.block.LiquidBlock block) Returns the fluid contained in the liquid block. This requires special handling since forge defers the fiuid.- Parameters:
block
- the liquid block- Returns:
- the fluid contained in the liquid block
-