net.minecraft.block

public class ComparatorBlock

extends AbstractRedstoneGateBlock implements BlockEntityProvider

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, BlockEntityProvider

net.minecraft.world.level.block.ComparatorBlock
net.minecraft.world.level.block.ComparatorBlock
net.minecraft.class_2286
net.minecraft.block.ComparatorBlock

Field summary

Modifier and TypeField
public static final EnumProperty<ComparatorMode>
MODE
MODE
field_10789
MODE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
protected int
getDelay(BlockState state)
getDelay(BlockState state)
method_9992(class_2680 arg0)
getUpdateDelayInternal(BlockState arg0)
public BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
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 int
getOutputSignal(BlockGetter level, BlockPos pos, BlockState state)
getOutputSignal(BlockGetter level, BlockPos pos, BlockState state)
method_9993(class_1922 arg0, class_2338 arg1, class_2680 arg2)
getOutputLevel(BlockView arg0, BlockPos arg1, BlockState arg2)
private int
calculateOutputSignal(Level level, BlockPos pos, BlockState state)
calculateOutputSignal(Level level, BlockPos pos, BlockState state)
method_9773(class_1937 arg0, class_2338 arg1, class_2680 arg2)
calculateOutputSignal(World world, BlockPos pos, BlockState state)
protected boolean
shouldTurnOn(Level level, BlockPos pos, BlockState state)
shouldTurnOn(Level level, BlockPos pos, BlockState state)
method_9990(class_1937 arg0, class_2338 arg1, class_2680 arg2)
hasPower(World arg0, BlockPos arg1, BlockState arg2)
protected int
getInputSignal(Level level, BlockPos pos, BlockState state)
getInputSignal(Level level, BlockPos pos, BlockState state)
method_9991(class_1937 arg0, class_2338 arg1, class_2680 arg2)
getPower(World arg0, BlockPos arg1, BlockState arg2)
private ItemFrameEntity
getItemFrame(Level level, Direction direction, BlockPos tPos)
getItemFrame(Level level, Direction direction, BlockPos tPos)
method_9774(class_1937 arg0, class_2350 arg1, class_2338 arg2)
getAttachedItemFrame(World world, Direction facing, BlockPos pos)
protected ActionResult
useWithoutItem(BlockState state, Level level, BlockPos pos, Player player, BlockHitResult hitResult)
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 void
checkTickOnNeighbor(Level level, BlockPos pos, BlockState state)
checkTickOnNeighbor(Level level, BlockPos pos, BlockState state)
method_9998(class_1937 arg0, class_2338 arg1, class_2680 arg2)
updatePowered(World arg0, BlockPos arg1, BlockState arg2)
private void
refreshOutputState(Level level, BlockPos pos, BlockState state)
refreshOutputState(Level level, BlockPos pos, BlockState state)
method_9775(class_1937 arg0, class_2338 arg1, class_2680 arg2)
update(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 boolean
triggerEvent(BlockState state, Level level, BlockPos pos, int b0, int b1)
triggerEvent(BlockState state, Level level, BlockPos pos, int b0, int b1)
method_9592(class_2680 arg0, class_1937 arg1, class_2338 arg2, int arg3, int arg4)
onSyncedBlockEvent(BlockState arg0, World arg1, BlockPos arg2, int arg3, int arg4)
public BlockEntity
newBlockEntity(BlockPos worldPosition, BlockState blockState)
newBlockEntity(BlockPos worldPosition, BlockState blockState)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
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)