minecraft-src/net/minecraft/world/level/block/LiquidBlockContainer.java
2025-07-04 03:45:38 +03:00

16 lines
684 B
Java

package net.minecraft.world.level.block;
import net.minecraft.core.BlockPos;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.level.BlockGetter;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.material.Fluid;
import net.minecraft.world.level.material.FluidState;
import org.jetbrains.annotations.Nullable;
public interface LiquidBlockContainer {
boolean canPlaceLiquid(@Nullable LivingEntity owner, BlockGetter level, BlockPos pos, BlockState state, Fluid fluid);
boolean placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState);
}