net.minecraft.block

public class RedstoneTorchBlock

extends AbstractTorchBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.RedstoneTorchBlock
net.minecraft.world.level.block.RedstoneTorchBlock
net.minecraft.class_2459
net.minecraft.block.RedstoneTorchBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<RedstoneTorchBlock>
CODEC
CODEC
field_46424
CODEC
public static final BooleanProperty
LIT
LIT
field_11446
LIT
private static final Map<BlockView, List<RedstoneTorchBlock$BurnoutEntry>>
RECENT_TOGGLES
RECENT_TOGGLES
field_11445
BURNOUT_MAP
public static final int
RECENT_TOGGLE_TIMER
RECENT_TOGGLE_TIMER
field_31227
field_31227
public static final int
MAX_RECENT_TOGGLES
MAX_RECENT_TOGGLES
field_31228
field_31228
public static final int
RESTART_DELAY
RESTART_DELAY
field_31229
field_31229
private static final int
TOGGLE_DELAY
TOGGLE_DELAY
field_31230
SCHEDULED_TICK_DELAY

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<? extends RedstoneTorchBlock>
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)
private void
notifyNeighbors(Level level, BlockPos pos, BlockState state)
notifyNeighbors(Level level, BlockPos pos, BlockState state)
method_61749(class_1937 arg0, class_2338 arg1, class_2680 arg2)
update(World world, BlockPos pos, BlockState state)
protected void
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
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 int
getSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
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 boolean
hasNeighborSignal(Level level, BlockPos pos, BlockState state)
hasNeighborSignal(Level level, BlockPos pos, BlockState state)
method_10488(class_1937 arg0, class_2338 arg1, class_2680 arg2)
shouldUnpower(World world, BlockPos pos, BlockState state)
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 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 int
getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
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)
protected boolean
isSignalSource(BlockState state)
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
public void
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
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
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)
private static boolean
isToggledTooFrequently(Level level, BlockPos pos, boolean add)
isToggledTooFrequently(Level level, BlockPos pos, boolean add)
method_10489(class_1937 arg0, class_2338 arg1, boolean arg2)
isBurnedOut(World world, BlockPos pos, boolean addNew)
protected WireOrientation
randomOrientation(Level level, BlockState state)
randomOrientation(Level level, BlockState state)
method_61748(class_1937 arg0, class_2680 arg1)
getEmissionOrientation(World world, BlockState state)