Interface IFluidBE

All Superinterfaces:
IBE
All Known Subinterfaces:
ISingleTankBE
All Known Implementing Classes:
AbstractSingleTankAndInventoryBE, AbstractSingleTankBE

public interface IFluidBE extends IBE
Provides a large number of helper functions for block entities with fluid handlers.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static void
    tryDistributeFluid(net.neoforged.neoforge.fluids.IFluidTank tank, net.minecraft.world.level.Level level, int maxExtract, IBE be)
    Attempts to distribute fluid to neighbouring blocks.
    static void
    tryPushFluid(net.neoforged.neoforge.fluids.IFluidTank tank, net.minecraft.world.level.Level level, int maxExtract, IBE be, net.minecraft.core.Direction direction)
    Attempt to push fluid from a block entity in a given direction.

    Methods inherited from interface top.girlkisser.lazuli.api.block.IBE

    getBlockPos, getBlockState, getLevel, setChanged
  • Method Details

    • tryDistributeFluid

      static void tryDistributeFluid(net.neoforged.neoforge.fluids.IFluidTank tank, net.minecraft.world.level.Level level, int maxExtract, IBE be)
      Attempts to distribute fluid to neighbouring blocks.
      Parameters:
      tank - The fluid tank to distribute from.
      level - The level.
      maxExtract - The maximum amount of fluid to distribute.
      be - The block entity to distribute fluid from.
    • tryPushFluid

      static void tryPushFluid(net.neoforged.neoforge.fluids.IFluidTank tank, net.minecraft.world.level.Level level, int maxExtract, IBE be, net.minecraft.core.Direction direction)
      Attempt to push fluid from a block entity in a given direction.
      Parameters:
      tank - The tank to push fluid from.
      level - The level.
      maxExtract - The maximum amount of fluid to push.
      be - The block entity to push fluid from.
      direction - The direction to push fluid in.