net.minecraft.world.level.block

public class LiquidBlock

extends Block implements BucketPickup

All mapped superinterfaces:

FeatureElement, ItemLike, BucketPickup

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

Field summary

Modifier and TypeField
private static final com.mojang.serialization.Codec<FlowingFluid>
f
FLOWING_FLUID
field_46391
FLUID_CODEC
public static final com.mojang.serialization.MapCodec<LiquidBlock>
a
CODEC
field_46390
CODEC
public static final IntegerProperty
b
LEVEL
field_11278
LEVEL
protected final FlowingFluid
c
fluid
field_11279
fluid
private final List<FluidState>
g
stateCache
field_11276
statesByLevel
public static final VoxelShape
d
SHAPE_STABLE
field_24412
COLLISION_SHAPE
public static final com.google.common.collect.ImmutableList<Direction>
e
POSSIBLE_FLOW_DIRECTIONS
field_34006
FLOW_DIRECTIONS

Constructor summary

ModifierConstructor
protected (FlowingFluid fluid, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<LiquidBlock>
a()
codec()
method_53969()
getCodec()
protected VoxelShape
b(ebq arg0, djn arg1, iw arg2, fgh arg3)
getCollisionShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
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
f(ebq arg0)
isRandomlyTicking(BlockState arg0)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState arg0)
protected void
b(ebq arg0, asb arg1, iw arg2, bai arg3)
randomTick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
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
e_(ebq arg0)
propagatesSkylightDown(BlockState arg0)
method_9579(class_2680 arg0)
isTransparent(BlockState arg0)
protected boolean
a(ebq arg0, eyp arg1)
isPathfindable(BlockState arg0, PathComputationType arg1)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
protected FluidState
b_(ebq arg0)
getFluidState(BlockState arg0)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected boolean
b(ebq arg0, ebq arg1, jc arg2)
skipRendering(BlockState arg0, BlockState arg1, Direction arg2)
method_9522(class_2680 arg0, class_2680 arg1, class_2350 arg2)
isSideInvisible(BlockState arg0, BlockState arg1, Direction arg2)
protected RenderShape
a_(ebq arg0)
getRenderShape(BlockState arg0)
method_9604(class_2680 arg0)
getRenderType(BlockState arg0)
protected List<ItemStack>
a(ebq arg0, faw$a arg1)
getDrops(BlockState arg0, LootParams$Builder arg1)
method_9560(class_2680 arg0, class_8567$class_8568 arg1)
getDroppedStacks(BlockState arg0, LootWorldContext$Builder arg1)
protected VoxelShape
a(ebq arg0, djn arg1, iw arg2, fgh arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
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
a(ebq arg0, dkj arg1, iw arg2, ebq arg3, boolean arg4)
onPlace(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
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
a(ebq arg0, dkm arg1, dky arg2, iw arg3, jc arg4, iw arg5, ebq arg6, bai arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
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
a(ebq arg0, dkj arg1, iw arg2, dno arg3, ezi arg4, boolean arg5)
neighborChanged(BlockState arg0, Level arg1, BlockPos arg2, Block arg3, Orientation arg4, boolean arg5)
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
a(dkj arg0, iw arg1, ebq arg2)
shouldSpreadLiquid(Level arg0, BlockPos arg1, BlockState arg2)
method_10316(class_1937 arg0, class_2338 arg1, class_2680 arg2)
receiveNeighborFluids(World world, BlockPos pos, BlockState state)
private void
a(dkk arg0, iw arg1)
fizz(LevelAccessor arg0, BlockPos arg1)
method_10318(class_1936 arg0, class_2338 arg1)
playExtinguishSound(WorldAccess world, BlockPos pos)
protected void
a(ebr$a<dno, ebq> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
public ItemStack
a(byf arg0, dkk arg1, iw arg2, ebq arg3)
pickupBlock(LivingEntity arg0, LevelAccessor arg1, BlockPos arg2, BlockState arg3)
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>
ap_()
getPickupSound()
method_32351()
getBucketFillSound()