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