Interface BotariumFluidBlock<T extends FluidContainer & Updatable>

Type Parameters:
T - The type of the fluid container. Must implement the FluidContainer and Updatable interfaces. Botarium provides a default implementation for this with WrappedBlockFluidContainer.

public interface BotariumFluidBlock<T extends FluidContainer & Updatable>
This interface represents a block that contains a fluid container.
  • Method Summary

    Modifier and Type
    Method
    Description
    getFluidContainer(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable net.minecraft.world.level.block.entity.BlockEntity entity, @Nullable net.minecraft.core.Direction direction)
     
  • Method Details

    • getFluidContainer

      @Nullable T getFluidContainer(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity entity, @Nullable @Nullable net.minecraft.core.Direction direction)
      Returns:
      The ItemFluidContainer for the block.