net.minecraft.block

public class SpongeBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.SpongeBlock
net.minecraft.world.level.block.SpongeBlock
net.minecraft.class_2502
net.minecraft.block.SpongeBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SpongeBlock>
CODEC
CODEC
field_46456
CODEC
public static final int
MAX_DEPTH
MAX_DEPTH
field_31250
ABSORB_RADIUS
public static final int
MAX_COUNT
MAX_COUNT
field_31251
ABSORB_LIMIT
private static final Direction[]
ALL_DIRECTIONS
ALL_DIRECTIONS
field_43257
DIRECTIONS

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<SpongeBlock>
codec()
codec()
method_53969()
getCodec()
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
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)
protected void
tryAbsorbWater(Level level, BlockPos pos)
tryAbsorbWater(Level level, BlockPos pos)
method_10620(class_1937 arg0, class_2338 arg1)
update(World world, BlockPos pos)
private boolean
removeWaterBreadthFirstSearch(Level level, BlockPos startPos)
removeWaterBreadthFirstSearch(Level level, BlockPos startPos)
method_10619(class_1937 arg0, class_2338 arg1)
absorbWater(World world, BlockPos pos)