Interface BotariumFluidBlock<T extends FluidContainer & Updatable>
- Type Parameters:
T- The type of the fluid container. Must implement theFluidContainerandUpdatableinterfaces. Botarium provides a default implementation for this withWrappedBlockFluidContainer.
public interface BotariumFluidBlock<T extends FluidContainer & Updatable>
This interface represents a block that contains a fluid container.
-
Method Summary
Modifier and TypeMethodDescriptiongetFluidContainer(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
ItemFluidContainerfor the block.
-