net.minecraft.block

public class LightningRodBlock

extends RodBlock implements Waterloggable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Waterloggable, FluidDrainable, FluidFillable

net.minecraft.world.level.block.LightningRodBlock
net.minecraft.class_5554
net.minecraft.block.LightningRodBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<LightningRodBlock>
CODEC
field_46389
CODEC
public static final BooleanProperty
WATERLOGGED
field_29562
WATERLOGGED
public static final BooleanProperty
POWERED
field_27193
POWERED
private static final int
ACTIVATION_TICKS
field_31192
SCHEDULED_TICK_DELAY
public static final int
RANGE
field_31190
MAX_REDIRECT_DISTANCE
private static final int
SPARK_CYCLE
field_31191
field_31191

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<? extends LightningRodBlock>
codec()
method_53969()
getCodec()
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
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 FluidState
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
protected int
getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected int
getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
public void
onLightningStrike(BlockState state, Level level, BlockPos pos)
method_31648(class_2680 arg0, class_1937 arg1, class_2338 arg2)
setPowered(BlockState state, World world, BlockPos pos)
private void
updateNeighbours(BlockState state, Level level, BlockPos pos)
method_33627(class_2680 arg0, class_1937 arg1, class_2338 arg2)
updateNeighbors(BlockState state, World world, BlockPos pos)
protected void
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)
public void
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
protected void
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean 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 void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected boolean
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)