net.minecraft.world.level.block

public class ComparatorBlock

extends DiodeBlock implements EntityBlock

All mapped superinterfaces:

FeatureElement, ItemLike, EntityBlock

dkx
net.minecraft.world.level.block.ComparatorBlock
net.minecraft.class_2286
net.minecraft.unmapped.C_qrhvqyam
net.minecraft.block.ComparatorBlock
net.minecraft.block.ComparatorBlock
net.minecraft.src.C_1739_
net.minecraft.world.level.block.BlockRedstoneComparator

Field summary

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

Constructor summary

ModifierConstructor
public (BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<ComparatorBlock>
a()
codec()
method_53969()
m_wrnxumjr()
getCodec()
getCodec()
m_304657_()
protected int
h(dwy arg0)
getDelay(BlockState arg0)
method_9992(class_2680 arg0)
m_ivykfrsh(C_txtbiemp arg0)
getUpdateDelayInternal(BlockState arg0)
getUpdateDelayInternal(BlockState arg0)
m_6112_(C_2064_ arg0)
public BlockState
a(dwy arg0, dgm arg1, dgy arg2, ji arg3, jn arg4, ji arg5, dwy arg6, azh 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)
m_yvunqpeq(C_txtbiemp arg0, C_eemzphbi arg1, C_adoatlrf arg2, C_hynzadkk arg3, C_xpuuihxf arg4, C_hynzadkk arg5, C_txtbiemp arg6, C_rlomrsco arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, TickSchedulerAccess arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, RandomGenerator arg7)
m_7417_(C_2064_ p_361531_, C_1599_ p_368115_, C_346056_ p_299729_, C_4675_ p_300136_, C_4687_ p_297639_, C_4675_ p_299304_, C_2064_ p_368851_, C_212974_ arg7)
protected int
a(dfo arg0, ji arg1, dwy arg2)
getOutputSignal(BlockGetter arg0, BlockPos arg1, BlockState arg2)
method_9993(class_1922 arg0, class_2338 arg1, class_2680 arg2)
m_axktpyln(C_peaveboq arg0, C_hynzadkk arg1, C_txtbiemp arg2)
getOutputLevel(BlockView arg0, BlockPos arg1, BlockState arg2)
getOutputLevel(BlockView arg0, BlockPos arg1, BlockState arg2)
m_5968_(C_1559_ p_51893_, C_4675_ p_51894_, C_2064_ arg2)
private int
e(dgj arg0, ji arg1, dwy arg2)
calculateOutputSignal(Level arg0, BlockPos arg1, BlockState arg2)
method_9773(class_1937 arg0, class_2338 arg1, class_2680 arg2)
m_flfmkilz(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2)
calculateOutputSignal(World world, BlockPos pos, BlockState state)
calculateOutputLevel(World world, BlockPos pos, BlockState state)
m_51903_(C_1596_ p_51905_, C_4675_ p_51906_, C_2064_ arg2)
protected boolean
a(dgj arg0, ji arg1, dwy arg2)
shouldTurnOn(Level arg0, BlockPos arg1, BlockState arg2)
method_9990(class_1937 arg0, class_2338 arg1, class_2680 arg2)
m_qmwftzms(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2)
hasPower(World arg0, BlockPos arg1, BlockState arg2)
shouldBePowered(World arg0, BlockPos arg1, BlockState arg2)
m_7320_(C_1596_ p_51862_, C_4675_ p_51863_, C_2064_ arg2)
protected int
b(dgj arg0, ji arg1, dwy arg2)
getInputSignal(Level arg0, BlockPos arg1, BlockState arg2)
method_9991(class_1937 arg0, class_2338 arg1, class_2680 arg2)
m_gxskdeps(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2)
getPower(World arg0, BlockPos arg1, BlockState arg2)
getInputLevel(World arg0, BlockPos arg1, BlockState arg2)
m_7312_(C_1596_ p_51897_, C_4675_ p_51898_, C_2064_ arg2)
private ItemFrame
a(dgj arg0, jn arg1, ji arg2)
getItemFrame(Level arg0, Direction arg1, BlockPos arg2)
method_9774(class_1937 arg0, class_2350 arg1, class_2338 arg2)
m_bnexegqc(C_cdctfzbn arg0, C_xpuuihxf arg1, C_hynzadkk arg2)
getAttachedItemFrame(World world, Direction facing, BlockPos pos)
getAttachedItemFrame(World world, Direction facing, BlockPos pos)
m_51864_(C_1596_ p_51866_, C_4687_ p_51867_, C_4675_ arg2)
protected InteractionResult
a(dwy arg0, dgj arg1, ji arg2, coy arg3, fax 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)
m_pguoxmgn(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_jzrpycqo arg3, C_jdakttms arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
m_6227_(C_2064_ p_51881_, C_1596_ p_51882_, C_4675_ p_51883_, C_1141_ p_51885_, C_3041_ arg4)
protected void
c(dgj arg0, ji arg1, dwy arg2)
checkTickOnNeighbor(Level arg0, BlockPos arg1, BlockState arg2)
method_9998(class_1937 arg0, class_2338 arg1, class_2680 arg2)
m_ncapgwkk(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2)
updatePowered(World arg0, BlockPos arg1, BlockState arg2)
checkOutputLevel(World arg0, BlockPos arg1, BlockState arg2)
m_7321_(C_1596_ p_51901_, C_4675_ p_51902_, C_2064_ arg2)
private void
f(dgj arg0, ji arg1, dwy arg2)
refreshOutputState(Level arg0, BlockPos arg1, BlockState arg2)
method_9775(class_1937 arg0, class_2338 arg1, class_2680 arg2)
m_gnmmcvoj(C_cdctfzbn arg0, C_hynzadkk arg1, C_txtbiemp arg2)
update(World world, BlockPos pos, BlockState state)
updateOutputLevel(World world, BlockPos pos, BlockState state)
m_51907_(C_1596_ p_51909_, C_4675_ p_51910_, C_2064_ arg2)
protected void
a(dwy arg0, ard arg1, ji arg2, azh arg3)
tick(BlockState arg0, ServerLevel arg1, BlockPos arg2, RandomSource arg3)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
m_bneobcwj(C_txtbiemp arg0, C_bdwnwhiu arg1, C_hynzadkk arg2, C_rlomrsco arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, RandomGenerator arg3)
m_213897_(C_2064_ p_221011_, C_12_ p_221012_, C_4675_ p_221013_, C_212974_ arg3)
protected boolean
a(dwy arg0, dgj arg1, ji 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)
m_pyvradtj(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, int arg3, int arg4)
onSyncedBlockEvent(BlockState arg0, World arg1, BlockPos arg2, int arg3, int arg4)
onSyncedBlockEvent(BlockState arg0, World arg1, BlockPos arg2, int arg3, int arg4)
m_8133_(C_2064_ p_51875_, C_1596_ p_51876_, C_4675_ p_51877_, int p_51878_, int arg4)
public BlockEntity
a(ji arg0, dwy arg1)
newBlockEntity(BlockPos arg0, BlockState arg1)
method_10123(class_2338 arg0, class_2680 arg1)
m_zupvpdxk(C_hynzadkk arg0, C_txtbiemp arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
createBlockEntity(BlockPos arg0, BlockState arg1)
m_142194_(C_4675_ p_153087_, C_2064_ arg1)
protected void
a(dwz$a<djn, dwy> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
m_yujtcnah(C_ezfeikaq$C_mfnsmxhw<C_mmxmpdoq, C_txtbiemp> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)