LiquidBlockContainer .java

net.minecraft.world.level.block.LiquidBlockContainer (interface): members: canPlaceLiquid, placeLiquid. imports: Fluid, FluidState, LevelAccessor.

net.minecraft.world.level.blockinterface17 linescommon681 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Full Source

LiquidBlockContainer.java17 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block;
2
3
import net.minecraft.core.BlockPos;
4
import net.minecraft.world.entity.LivingEntity;
5
import net.minecraft.world.level.BlockGetter;
6
import net.minecraft.world.level.LevelAccessor;
7
import net.minecraft.world.level.block.state.BlockState;
8
import net.minecraft.world.level.material.Fluid;
9
import net.minecraft.world.level.material.FluidState;
10
import org.jspecify.annotations.Nullable;
11
12
public interface LiquidBlockContainer {
13
	boolean canPlaceLiquid(@Nullable LivingEntity user, BlockGetter level, BlockPos pos, BlockState state, Fluid type);
14
15
	boolean placeLiquid(LevelAccessor level, BlockPos pos, BlockState state, FluidState fluidState);
16
}
17

Decompiled Minecraft 26.3 source of LiquidBlockContainer (net/minecraft/world/level/block/LiquidBlockContainer.java) with Mojang official mappings, stored verbatim on the site.