net.minecraft.block

public class FluidBlock

extends Block implements FluidDrainable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, FluidDrainable

net.minecraft.world.level.block.LiquidBlock
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
FLOWING_FLUID
field_46391
FLUID_CODEC
public static final com.mojang.serialization.MapCodec<FluidBlock>
CODEC
CODEC
field_46390
CODEC
public static final IntProperty
LEVEL
LEVEL
field_11278
LEVEL
protected final FlowableFluid
fluid
fluid
field_11279
fluid
private final List<FluidState>
stateCache
stateCache
field_11276
statesByLevel
public static final com.google.common.collect.ImmutableList<Direction>
POSSIBLE_FLOW_DIRECTIONS
POSSIBLE_FLOW_DIRECTIONS
field_34006
FLOW_DIRECTIONS
private static final int
BUBBLE_COLUMN_CHECK_DELAY
BUBBLE_COLUMN_CHECK_DELAY
field_1_1009
field_1_1009

Constructor summary

ModifierConstructor
protected (FlowableFluid fluid, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<FluidBlock>
codec()
codec()
method_53969()
getCodec()
protected VoxelShape
getCollisionShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
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)
private Optional<LivingEntity>
ifMobIsColliding(CollisionContext context)
ifMobIsColliding(CollisionContext context)
method_1_1177(class_3726 arg0)
getEntityFromContext(ShapeContext context)
protected boolean
isRandomlyTicking(BlockState state)
isRandomlyTicking(BlockState state)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState arg0)
protected void
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
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)
propagatesSkylightDown(BlockState state)
method_9579(class_2680 arg0)
isTransparent(BlockState arg0)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
protected FluidState
getFluidState(BlockState state)
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected boolean
skipRendering(BlockState state, BlockState neighborState, Direction direction)
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)
getRenderShape(BlockState state)
method_9604(class_2680 arg0)
getRenderType(BlockState arg0)
protected List<ItemStack>
getDrops(BlockState state, LootParams$Builder params)
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)
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)
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 void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
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)
private static boolean
shouldBubbleColumnOccupy(BlockState state)
shouldBubbleColumnOccupy(BlockState state)
method_1_964(class_2680 arg0)
bubbleColumnCanOccupy(BlockState state)
protected void
neighborChanged(BlockState state, Level level, BlockPos pos, Block block, Orientation orientation, boolean movedByPiston)
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 void
tryScheduleBubbleBlockColumn(ScheduledTickAccess ticks, BlockPos pos, BlockState stateBelow)
tryScheduleBubbleBlockColumn(ScheduledTickAccess ticks, BlockPos pos, BlockState stateBelow)
method_1_1179(class_10225 arg0, class_2338 arg1, class_2680 arg2)
scheduleTickForBubbleColumn(ScheduledTickView tickView, BlockPos pos, BlockState floorState)
private boolean
shouldSpreadLiquid(Level level, BlockPos pos, BlockState state)
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)
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)
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)
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()
getPickupSound()
method_32351()
getBucketFillSound()