net.minecraft.world.level.block

public class LeverBlock

extends FaceAttachedHorizontalDirectionalBlock

All mapped superinterfaces:

ItemLike

cdq
net.minecraft.world.level.block.LeverBlock
net.minecraft.class_2401
net.minecraft.block.LeverBlock
net.minecraft.src.C_1831_
net.minecraft.world.level.block.BlockLever

Field summary

Modifier and TypeField
public static final BooleanProperty
a
POWERED
field_11265
POWERED
f_54622_
protected static final int
b
DEPTH
field_31184
field_31184
f_153653_
protected static final int
c
WIDTH
field_31185
field_31185
f_153654_
protected static final int
d
HEIGHT
field_31186
field_31186
f_153655_
protected static final VoxelShape
e
NORTH_AABB
field_11267
NORTH_WALL_SHAPE
f_54623_
protected static final VoxelShape
f
SOUTH_AABB
field_11263
SOUTH_WALL_SHAPE
f_54624_
protected static final VoxelShape
g
WEST_AABB
field_11260
WEST_WALL_SHAPE
f_54625_
protected static final VoxelShape
h
EAST_AABB
field_11262
EAST_WALL_SHAPE
f_54626_
protected static final VoxelShape
i
UP_AABB_Z
field_11264
FLOOR_Z_AXIS_SHAPE
f_54627_
protected static final VoxelShape
j
UP_AABB_X
field_11261
FLOOR_X_AXIS_SHAPE
f_54628_
protected static final VoxelShape
k
DOWN_AABB_Z
field_11268
CEILING_Z_AXIS_SHAPE
f_54629_
protected static final VoxelShape
l
DOWN_AABB_X
field_11266
CEILING_X_AXIS_SHAPE
f_54630_

Constructor summary

ModifierConstructor
protected (BlockBehaviour$Properties arg0)

Method summary

Modifier and TypeMethod
public VoxelShape
a(ckt arg0, bvu arg1, gg arg2, dnf arg3)
getShape(BlockState arg0, BlockGetter arg1, BlockPos arg2, CollisionContext arg3)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
m_5940_(C_2064_ p_54666_, C_1559_ p_54667_, C_4675_ p_54668_, C_3051_ arg3)
public InteractionResult
a(ckt arg0, bwq arg1, gg arg2, bke arg3, asa arg4, dmw arg5)
use(BlockState arg0, Level arg1, BlockPos arg2, Player arg3, InteractionHand arg4, BlockHitResult arg5)
method_9534(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3, class_1268 arg4, class_3965 arg5)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, Hand arg4, BlockHitResult arg5)
m_6227_(C_2064_ p_54641_, C_1596_ p_54642_, C_4675_ p_54643_, C_1141_ p_54644_, C_470_ p_54645_, C_3041_ arg5)
interact(IBlockData arg0, World arg1, BlockPosition arg2, EntityHuman arg3, EnumHand arg4, MovingObjectPositionBlock arg5)
public BlockState
d(ckt arg0, bwq arg1, gg arg2)
pull(BlockState arg0, Level arg1, BlockPos arg2)
method_21846(class_2680 arg0, class_1937 arg1, class_2338 arg2)
togglePower(BlockState state, World world, BlockPos pos)
m_54676_(C_2064_ p_54678_, C_1596_ p_54679_, C_4675_ arg2)
private static void
a(ckt arg0, bwr arg1, gg 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)
spawnParticles(BlockState state, WorldAccess world, BlockPos pos, float alpha)
m_54657_(C_2064_ p_54658_, C_1598_ p_54659_, C_4675_ p_54660_, float p_54661_)
public void
a(ckt arg0, bwq arg1, gg arg2, Random arg3)
animateTick(BlockState arg0, Level arg1, BlockPos arg2, Random arg3)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, Random arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
m_7100_(C_2064_ p_54654_, C_1596_ p_54655_, C_4675_ p_54656_, Random arg3)
public void
a(ckt arg0, bwq arg1, gg arg2, ckt arg3, boolean arg4)
onRemove(BlockState arg0, Level arg1, BlockPos arg2, BlockState arg3, boolean arg4)
method_9536(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
m_6810_(C_2064_ p_54648_, C_1596_ p_54649_, C_4675_ p_54650_, C_2064_ p_54651_, boolean arg4)
remove(IBlockData arg0, World arg1, BlockPosition arg2, IBlockData arg3, boolean arg4)
public int
a(ckt arg0, bvu arg1, gg arg2, gl arg3)
getSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9524(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
m_6378_(C_2064_ p_54636_, C_1559_ p_54637_, C_4675_ p_54638_, C_4687_ arg3)
public int
b(ckt arg0, bvu arg1, gg arg2, gl arg3)
getDirectSignal(BlockState arg0, BlockGetter arg1, BlockPos arg2, Direction arg3)
method_9603(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_2350 arg3)
getStrongRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2, Direction arg3)
m_6376_(C_2064_ p_54671_, C_1559_ p_54672_, C_4675_ p_54673_, C_4687_ arg3)
public boolean
f_(ckt arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
m_7899_(C_2064_ arg0)
isPowerSource(IBlockData arg0)
private void
e(ckt arg0, bwq arg1, gg arg2)
updateNeighbours(BlockState arg0, Level arg1, BlockPos arg2)
method_10309(class_2680 arg0, class_1937 arg1, class_2338 arg2)
updateNeighbors(BlockState state, World world, BlockPos pos)
m_54680_(C_2064_ p_54682_, C_1596_ p_54683_, C_4675_ arg2)
protected void
a(cku$a<bzp, ckt> arg0)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> arg0)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
m_7926_(C_2065_$C_2066_<C_1706_, C_2064_> arg0)