net.minecraft.world.level.block

public abstract class ButtonBlock

extends FaceAttachedHorizontalDirectionalBlock

All mapped superinterfaces:

ItemLike

ckb
net.minecraft.world.level.block.ButtonBlock
net.minecraft.class_2269
net.minecraft.unmapped.C_mvguptux
net.minecraft.block.AbstractButtonBlock
net.minecraft.block.AbstractButtonBlock
net.minecraft.src.C_1716_
net.minecraft.world.level.block.BlockButtonAbstract

Field summary

Modifier and TypeField
public static final BooleanProperty
a
POWERED
field_10729
f_pzyrfksa
POWERED
POWERED
f_51045_
private static final int
K
PRESSED_DEPTH
field_31040
f_qdffkfbl
field_31040
PRESSED_DEPTH
f_152736_
private static final int
L
UNPRESSED_DEPTH
field_31041
f_jdxwsqgj
field_31041
UNPRESSED_DEPTH
f_152737_
protected static final int
b
HALF_AABB_HEIGHT
field_31042
f_tnurjoub
field_31042
HALF_SHAPE_HEIGHT
f_152738_
protected static final int
c
HALF_AABB_WIDTH
field_31043
f_wwplhixo
field_31043
HALF_SHAPE_WIDTH
f_152739_
protected static final VoxelShape
d
CEILING_AABB_X
field_10721
f_xfwgrord
CEILING_X_SHAPE
CEILING_X_SHAPE
f_51046_
protected static final VoxelShape
e
CEILING_AABB_Z
field_10727
f_fqunlwzs
CEILING_Z_SHAPE
CEILING_Z_SHAPE
f_51047_
protected static final VoxelShape
f
FLOOR_AABB_X
field_10723
f_ugfojogr
FLOOR_X_SHAPE
FLOOR_X_SHAPE
f_51048_
protected static final VoxelShape
g
FLOOR_AABB_Z
field_10716
f_lyvwefny
FLOOR_Z_SHAPE
FLOOR_Z_SHAPE
f_51049_
protected static final VoxelShape
h
NORTH_AABB
field_10728
f_mmsecubf
NORTH_SHAPE
NORTH_SHAPE
f_51050_
protected static final VoxelShape
i
SOUTH_AABB
field_10715
f_kzpgltxs
SOUTH_SHAPE
SOUTH_SHAPE
f_51051_
protected static final VoxelShape
j
WEST_AABB
field_10731
f_qmwjtlhs
WEST_SHAPE
WEST_SHAPE
f_51052_
protected static final VoxelShape
k
EAST_AABB
field_10720
f_ryekvpwj
EAST_SHAPE
EAST_SHAPE
f_51053_
protected static final VoxelShape
l
PRESSED_CEILING_AABB_X
field_10717
f_qeodymvp
CEILING_X_PRESSED_SHAPE
CEILING_X_PRESSED_SHAPE
f_51054_
protected static final VoxelShape
m
PRESSED_CEILING_AABB_Z
field_10726
f_mduuvfgj
CEILING_Z_PRESSED_SHAPE
CEILING_Z_PRESSED_SHAPE
f_51055_
protected static final VoxelShape
n
PRESSED_FLOOR_AABB_X
field_10722
f_zdevvfvl
FLOOR_X_PRESSED_SHAPE
FLOOR_X_PRESSED_SHAPE
f_51056_
protected static final VoxelShape
E
PRESSED_FLOOR_AABB_Z
field_10730
f_rbfhhthe
FLOOR_Z_PRESSED_SHAPE
FLOOR_Z_PRESSED_SHAPE
f_51057_
protected static final VoxelShape
F
PRESSED_NORTH_AABB
field_10719
f_vbanmhdw
NORTH_PRESSED_SHAPE
NORTH_PRESSED_SHAPE
f_51058_
protected static final VoxelShape
G
PRESSED_SOUTH_AABB
field_10724
f_irjxpusc
SOUTH_PRESSED_SHAPE
SOUTH_PRESSED_SHAPE
f_51059_
protected static final VoxelShape
H
PRESSED_WEST_AABB
field_10732
f_uurxfwdq
WEST_PRESSED_SHAPE
WEST_PRESSED_SHAPE
f_51060_
protected static final VoxelShape
I
PRESSED_EAST_AABB
field_10718
f_rcocfcie
EAST_PRESSED_SHAPE
EAST_PRESSED_SHAPE
f_51061_
private final boolean
M
sensitive
field_10725
f_wgplbkgd
wooden
wooden
f_51062_

Constructor summary

ModifierConstructor
protected (boolean wooden, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
private int
b()
getPressDuration()
method_26153()
m_kgzvowzg()
getPressTicks()
getPressTicks()
m_51115_()
public VoxelShape
a(cvo arg0, cgd arg1, gt arg2, dwv 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)
m_5940_(C_2064_ p_51105_, C_1559_ p_51106_, C_4675_ p_51107_, C_3051_ arg3)
public InteractionResult
a(cvo arg0, cgx arg1, gt arg2, buc arg3, bai arg4, dwm 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)
m_rocdemyx(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_jzrpycqo arg3, C_laxmzoqs arg4, C_jdakttms arg5)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, Hand arg4, BlockHitResult arg5)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, Hand arg4, BlockHitResult arg5)
m_6227_(C_2064_ p_51089_, C_1596_ p_51090_, C_4675_ p_51091_, C_1141_ p_51092_, C_470_ p_51093_, C_3041_ arg5)
public void
d(cvo arg0, cgx arg1, gt arg2)
press(BlockState arg0, Level arg1, BlockPos arg2)
method_21845(class_2680 arg0, class_1937 arg1, class_2338 arg2)
m_xgiovkgj(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2)
powerOn(BlockState state, World world, BlockPos pos)
powerOn(BlockState state, World world, BlockPos pos)
m_51116_(C_2064_ p_51118_, C_1596_ p_51119_, C_4675_ arg2)
protected void
a(buc arg0, cgy arg1, gt arg2, boolean arg3)
playSound(Player arg0, LevelAccessor arg1, BlockPos arg2, boolean arg3)
method_9714(class_1657 arg0, class_1936 arg1, class_2338 arg2, boolean arg3)
m_wnfxbhzh(C_jzrpycqo arg0, C_vdvbsyle arg1, C_hynzadkk arg2, boolean arg3)
playClickSound(PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered)
playClickSound(PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered)
m_51067_(C_1141_ p_51069_, C_1598_ p_51070_, C_4675_ p_51071_, boolean arg3)
protected abstract SoundEvent
a(boolean arg0)
getSound(boolean arg0)
method_9712(boolean arg0)
m_smnwtisx(boolean arg0)
getClickSound(boolean powered)
getClickSound(boolean powered)
m_5722_(boolean arg0)
public void
a(cvo arg0, cgx arg1, gt arg2, cvo 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)
m_rhbsxbgh(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_txtbiemp arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
onStateReplaced(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
m_6810_(C_2064_ p_51096_, C_1596_ p_51097_, C_4675_ p_51098_, C_2064_ p_51099_, boolean arg4)
public int
a(cvo arg0, cgd arg1, gt arg2, gy 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)
m_6378_(C_2064_ p_51079_, C_1559_ p_51080_, C_4675_ p_51081_, C_4687_ arg3)
public int
b(cvo arg0, cgd arg1, gt arg2, gy 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)
m_6376_(C_2064_ p_51110_, C_1559_ p_51111_, C_4675_ p_51112_, C_4687_ arg3)
public boolean
f_(cvo arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
m_fjkbizwn(C_txtbiemp arg0)
emitsRedstonePower(BlockState arg0)
emitsRedstonePower(BlockState arg0)
m_7899_(C_2064_ arg0)
public void
a(cvo arg0, agg arg1, gt arg2, amn 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_220904_, C_12_ p_220905_, C_4675_ p_220906_, C_212974_ arg3)
public void
a(cvo arg0, cgx arg1, gt arg2, bbn arg3)
entityInside(BlockState arg0, Level arg1, BlockPos arg2, Entity arg3)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3)
m_lmjnycyw(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_astfners arg3)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3)
m_7892_(C_2064_ p_51084_, C_1596_ p_51085_, C_4675_ p_51086_, C_507_ arg3)
private void
e(cvo arg0, cgx arg1, gt arg2)
checkPressed(BlockState arg0, Level arg1, BlockPos arg2)
method_9715(class_2680 arg0, class_1937 arg1, class_2338 arg2)
m_zsepdvap(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2)
tryPowerWithProjectiles(BlockState state, World world, BlockPos pos)
tryPowerWithProjectiles(BlockState state, World world, BlockPos pos)
m_51120_(C_2064_ p_51122_, C_1596_ p_51123_, C_4675_ arg2)
private void
f(cvo arg0, cgx arg1, gt arg2)
updateNeighbours(BlockState arg0, Level arg1, BlockPos arg2)
method_9713(class_2680 arg0, class_1937 arg1, class_2338 arg2)
m_vkkuhzwv(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2)
updateNeighbors(BlockState state, World world, BlockPos pos)
updateNeighbors(BlockState state, World world, BlockPos pos)
m_51124_(C_2064_ p_51126_, C_1596_ p_51127_, C_4675_ arg2)
protected void
a(cvp$a<cjt, cvo> 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)