net.minecraft.block

public class RepeaterBlock

extends AbstractRedstoneGateBlock

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.RepeaterBlock
net.minecraft.class_2462
net.minecraft.block.RepeaterBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<RepeaterBlock>
CODEC
field_46426
CODEC
public static final BooleanProperty
LOCKED
field_11452
LOCKED
public static final IntProperty
DELAY
field_11451
DELAY

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<RepeaterBlock>
codec()
method_53969()
getCodec()
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
method_55766(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_3965 arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
protected int
getDelay(BlockState state)
method_9992(class_2680 arg0)
getUpdateDelayInternal(BlockState arg0)
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)
public boolean
isLocked(LevelReader level, BlockPos pos, BlockState state)
method_9996(class_4538 arg0, class_2338 arg1, class_2680 arg2)
isLocked(WorldView arg0, BlockPos arg1, BlockState arg2)
protected boolean
sideInputDiodesOnly()
method_49816()
getSideInputFromGatesOnly()
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
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)