net.minecraft.world.level.block

public class ComparatorBlock

extends DiodeBlock implements EntityBlock

All mapped superinterfaces:

FeatureElement, ItemLike, EntityBlock

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

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<ComparatorBlock>
a
CODEC
field_46319
CODEC
public static final EnumProperty<ComparatorMode>
b
MODE
field_10789
MODE

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<ComparatorBlock>
a()
codec()
method_53969()
getCodec()
protected int
h(dxv arg0)
getDelay(BlockState arg0)
method_9992(class_2680 arg0)
getUpdateDelayInternal(BlockState arg0)
public BlockState
a(dxv arg0, dhl arg1, dhx arg2, jh arg3, jm arg4, jh arg5, dxv arg6, bam arg7)
updateShape(BlockState arg0, LevelReader arg1, ScheduledTickAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomSource arg7)
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
a(dgn arg0, jh arg1, dxv arg2)
getOutputSignal(BlockGetter arg0, BlockPos arg1, BlockState arg2)
method_9993(class_1922 arg0, class_2338 arg1, class_2680 arg2)
getOutputLevel(BlockView arg0, BlockPos arg1, BlockState arg2)
private int
e(dhi arg0, jh arg1, dxv arg2)
calculateOutputSignal(Level arg0, BlockPos arg1, BlockState arg2)
method_9773(class_1937 arg0, class_2338 arg1, class_2680 arg2)
calculateOutputSignal(World world, BlockPos pos, BlockState state)
protected boolean
a(dhi arg0, jh arg1, dxv arg2)
shouldTurnOn(Level arg0, BlockPos arg1, BlockState arg2)
method_9990(class_1937 arg0, class_2338 arg1, class_2680 arg2)
hasPower(World arg0, BlockPos arg1, BlockState arg2)
protected int
b(dhi arg0, jh arg1, dxv arg2)
getInputSignal(Level arg0, BlockPos arg1, BlockState arg2)
method_9991(class_1937 arg0, class_2338 arg1, class_2680 arg2)
getPower(World arg0, BlockPos arg1, BlockState arg2)
private ItemFrame
a(dhi arg0, jm arg1, jh arg2)
getItemFrame(Level arg0, Direction arg1, BlockPos arg2)
method_9774(class_1937 arg0, class_2350 arg1, class_2338 arg2)
getAttachedItemFrame(World world, Direction facing, BlockPos pos)
protected InteractionResult
a(dxv arg0, dhi arg1, jh arg2, cpx arg3, fbu arg4)
useWithoutItem(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, BlockHitResult arg4)
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
c(dhi arg0, jh arg1, dxv arg2)
checkTickOnNeighbor(Level arg0, BlockPos arg1, BlockState arg2)
method_9998(class_1937 arg0, class_2338 arg1, class_2680 arg2)
updatePowered(World arg0, BlockPos arg1, BlockState arg2)
private void
f(dhi arg0, jh arg1, dxv arg2)
refreshOutputState(Level arg0, BlockPos arg1, BlockState arg2)
method_9775(class_1937 arg0, class_2338 arg1, class_2680 arg2)
update(World world, BlockPos pos, BlockState state)
protected void
a(dxv arg0, ash arg1, jh arg2, bam arg3)
tick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
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
a(dxv arg0, dhi arg1, jh arg2, int arg3, int arg4)
triggerEvent(BlockState arg0, Level arg1, BlockPos arg2, int arg3, int arg4)
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
a(jh arg0, dxv arg1)
newBlockEntity(BlockPos arg0, BlockState arg1)
method_10123(class_2338 arg0, class_2680 arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
protected void
a(dxw$a<dkm, dxv> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)