net.minecraft.block

public class FluidBlock

extends Block implements FluidDrainable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, FluidDrainable

net.minecraft.world.level.block.LiquidBlock
net.minecraft.class_2404
net.minecraft.block.FluidBlock

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<FlowableFluid>
FLOWING_FLUID
field_46391
FLUID_CODEC
public static final com.mojang.serialization.MapCodec<FluidBlock>
CODEC
field_46390
CODEC
public static final IntProperty
LEVEL
field_11278
LEVEL
protected final FlowableFluid
fluid
field_11279
fluid
private final List<FluidState>
stateCache
field_11276
statesByLevel
public static final VoxelShape
SHAPE_STABLE
field_24412
COLLISION_SHAPE
public static final com.google.common.collect.ImmutableList<Direction>
POSSIBLE_FLOW_DIRECTIONS
field_34006
FLOW_DIRECTIONS

Constructor summary

ModifierConstructor
protected (FlowableFluid fluid, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<FluidBlock>
codec()
method_53969()
getCodec()
protected VoxelShape
getCollisionShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9549(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getCollisionShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
isRandomlyTicking(BlockState state)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState arg0)
protected void
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9514(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
randomTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected boolean
propagatesSkylightDown(BlockState state)
method_9579(class_2680 arg0)
isTransparent(BlockState arg0)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
protected FluidState
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected boolean
skipRendering(BlockState state, BlockState neighborState, Direction direction)
method_9522(class_2680 arg0, class_2680 arg1, class_2350 arg2)
isSideInvisible(BlockState arg0, BlockState arg1, Direction arg2)
protected BlockRenderType
getRenderShape(BlockState state)
method_9604(class_2680 arg0)
getRenderType(BlockState arg0)
protected List<ItemStack>
getDrops(BlockState state, LootParams$Builder params)
method_9560(class_2680 arg0, class_8567$class_8568 arg1)
getDroppedStacks(BlockState arg0, LootWorldContext$Builder arg1)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected void
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected void
neighborChanged(BlockState state, Level level, BlockPos pos, Block block, Orientation orientation, boolean movedByPiston)
method_9612(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2248 arg3, class_9904 arg4, boolean arg5)
neighborUpdate(BlockState arg0, World arg1, BlockPos arg2, Block arg3, WireOrientation arg4, boolean arg5)
private boolean
shouldSpreadLiquid(Level level, BlockPos pos, BlockState state)
method_10316(class_1937 arg0, class_2338 arg1, class_2680 arg2)
receiveNeighborFluids(World world, BlockPos pos, BlockState state)
private void
fizz(LevelAccessor level, BlockPos pos)
method_10318(class_1936 arg0, class_2338 arg1)
playExtinguishSound(WorldAccess world, BlockPos pos)
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
public ItemStack
pickupBlock(LivingEntity user, LevelAccessor level, BlockPos pos, BlockState state)
method_9700(class_1309 arg0, class_1936 arg1, class_2338 arg2, class_2680 arg3)
tryDrainFluid(LivingEntity arg0, WorldAccess arg1, BlockPos arg2, BlockState arg3)
public Optional<SoundEvent>
getPickupSound()
method_32351()
getBucketFillSound()
private static com.mojang.datafixers.kinds.App
lambda$static$4(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_54027(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_54027(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)
private static FlowableFluid
lambda$static$3(LiquidBlock arg0)
method_54028(class_2404 arg0)
method_54028(FluidBlock block)
private static Fluid
lambda$static$2(FlowingFluid arg0)
method_54029(class_3609 arg0)
method_54029(FlowableFluid fluid)
private static com.mojang.serialization.DataResult
lambda$static$1(Fluid arg0)
method_54030(class_3611 arg0)
method_54030(Fluid fluid)
private static String
lambda$static$0(Fluid arg0)
method_54031(class_3611 arg0)
method_54031(Fluid arg0)