Interface FluidData
- All Known Implementing Classes:
ForgeFluidData
public interface FluidData
-
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends net.minecraft.world.level.block.LiquidBlock>getBlock()Supplier<? extends net.minecraft.world.item.Item>Supplier<? extends net.minecraft.world.level.material.FlowingFluid>default Optional<? extends net.minecraft.world.level.block.LiquidBlock>default Optional<net.minecraft.world.item.Item>default Optional<? extends net.minecraft.world.level.material.FlowingFluid>default Optional<? extends net.minecraft.world.level.material.FlowingFluid>Deprecated.Supplier<? extends net.minecraft.world.level.material.FlowingFluid>voidvoidvoidsetFlowingFluid(Supplier<? extends net.minecraft.world.level.material.FlowingFluid> flowing) voidsetStillFluid(Supplier<? extends net.minecraft.world.level.material.FlowingFluid> still)
-
Method Details
-
getProperties
Deprecated.UsegetInformation()instead, this method will be removed in the future.- Returns:
- The properties of this fluid.
-
getInformation
FluidInformation getInformation() -
getStillFluid
Supplier<? extends net.minecraft.world.level.material.FlowingFluid> getStillFluid() -
getFlowingFluid
Supplier<? extends net.minecraft.world.level.material.FlowingFluid> getFlowingFluid() -
getBucket
Supplier<? extends net.minecraft.world.item.Item> getBucket() -
getBlock
Supplier<? extends net.minecraft.world.level.block.LiquidBlock> getBlock() -
setStillFluid
-
setFlowingFluid
-
setBucket
-
setBlock
-
getOptionalBucket
-
getOptionalBlock
-
getOptionalFlowingFluid
default Optional<? extends net.minecraft.world.level.material.FlowingFluid> getOptionalFlowingFluid() -
getOptionalStillFluid
-
getInformation()instead, this method will be removed in the future.