net.minecraft.world.level.block

public class LeverBlock

extends FaceAttachedHorizontalDirectionalBlock

All mapped superinterfaces:

FeatureElement, ItemLike

dqy
net.minecraft.world.level.block.LeverBlock
net.minecraft.class_2401
net.minecraft.unmapped.C_hcykfprw
net.minecraft.block.LeverBlock
net.minecraft.block.LeverBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<LeverBlock>
a
CODEC
field_46387
f_eehxwxgv
CODEC
CODEC
public static final BooleanProperty
b
POWERED
field_11265
f_tyacqxtk
POWERED
POWERED
private final Function<BlockState, VoxelShape>
d
shapes
field_55776
f_wqejvzey
shapeFunction

Constructor summary

ModifierConstructor
protected (BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<LeverBlock>
a()
codec()
method_53969()
m_wrnxumjr()
getCodec()
getCodec()
private Function<BlockState, VoxelShape>
b()
makeShapes()
method_66447()
m_kosbrcps()
createShapeFunction()
protected VoxelShape
a(eah arg0, dig arg1, iu arg2, fev arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
m_fqngyjtr(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_pbfjvesm arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected InteractionResult
a(eah arg0, dja arg1, iu arg2, crc arg3, fem 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)
protected void
a(eah arg0, arq arg1, iu arg2, dit arg3, BiConsumer<czd, iu> arg4)
onExplosionHit(BlockState arg0, ServerLevel arg1, BlockPos arg2, Explosion arg3, BiConsumer<ItemStack, BlockPos> arg4)
method_55124(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_1927 arg3, BiConsumer<class_1799, class_2338> arg4)
m_qjdjbqgu(C_txtbiemp arg0, C_bdwnwhiu arg1, C_hynzadkk arg2, C_aahhrzpf arg3, BiConsumer<C_sddaxwyk, C_hynzadkk> arg4)
onExploded(BlockState arg0, ServerWorld arg1, BlockPos arg2, Explosion arg3, BiConsumer<ItemStack, BlockPos> arg4)
onExplosion(BlockState arg0, ServerWorld arg1, BlockPos arg2, Explosion arg3, BiConsumer<ItemStack, BlockPos> arg4)
public void
b(eah arg0, dja arg1, iu arg2, crc arg3)
pull(BlockState arg0, Level arg1, BlockPos arg2, Player arg3)
method_21846(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3)
m_rryaawcw(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_jzrpycqo arg3)
togglePower(BlockState state, World world, BlockPos pos, PlayerEntity player)
toggle(BlockState state, World world, BlockPos pos, PlayerEntity player)
protected static void
a(crc arg0, djb arg1, iu arg2, eah arg3)
playSound(Player arg0, LevelAccessor arg1, BlockPos arg2, BlockState arg3)
method_60283(class_1657 arg0, class_1936 arg1, class_2338 arg2, class_2680 arg3)
m_cilpunoe(C_jzrpycqo arg0, C_vdvbsyle arg1, C_hynzadkk arg2, C_txtbiemp arg3)
playClickSound(PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state)
playToggleSound(PlayerEntity player, WorldAccess world, BlockPos pos, BlockState state)
private static void
a(eah arg0, djb arg1, iu arg2, float arg3)
makeParticle(BlockState arg0, LevelAccessor arg1, BlockPos arg2, float arg3)
method_10308(class_2680 arg0, class_1936 arg1, class_2338 arg2, float arg3)
m_qafqjimt(C_txtbiemp arg0, C_vdvbsyle arg1, C_hynzadkk arg2, float arg3)
spawnParticles(BlockState state, WorldAccess world, BlockPos pos, float alpha)
spawnParticles(BlockState state, WorldAccess world, BlockPos pos, float alpha)
public void
a(eah arg0, dja arg1, iu arg2, azv arg3)
animateTick(BlockState arg0, Level arg1, BlockPos arg2, RandomSource arg3)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
m_qdvbqnpt(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_rlomrsco arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, RandomGenerator arg3)
protected void
a(eah arg0, arq arg1, iu arg2, boolean arg3)
affectNeighborsAfterRemoval(BlockState arg0, ServerLevel arg1, BlockPos arg2, boolean arg3)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
m_twpfvvna(C_txtbiemp arg0, C_bdwnwhiu arg1, C_hynzadkk arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
m_twpfvvna(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
protected int
a(eah arg0, dig arg1, iu arg2, ja arg3)
getSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
m_bhohbmwk(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_xpuuihxf arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected int
b(eah arg0, dig arg1, iu arg2, ja arg3)
getDirectSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
m_ydisyayk(C_txtbiemp arg0, C_peaveboq arg1, C_hynzadkk arg2, C_xpuuihxf arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
protected boolean
f_(eah arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
m_fjkbizwn(C_txtbiemp arg0)
emitsRedstonePower(BlockState arg0)
isRedstonePowerSource(BlockState arg0)
private void
d(eah arg0, dja arg1, iu arg2)
updateNeighbours(BlockState arg0, Level arg1, BlockPos arg2)
method_10309(class_2680 arg0, class_1937 arg1, class_2338 arg2)
m_frzaiydw(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2)
updateNeighbors(BlockState state, World world, BlockPos pos)
updateNeighbors(BlockState state, World world, BlockPos pos)
protected void
a(eai$a<dmf, eah> 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)