net.minecraft.world.level.block

public class ButtonBlock

extends FaceAttachedHorizontalDirectionalBlock

All mapped superinterfaces:

FeatureElement, ItemLike

djy
net.minecraft.world.level.block.ButtonBlock
net.minecraft.class_2269
net.minecraft.block.ButtonBlock
net.minecraft.world.level.block.BlockButtonAbstract

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<ButtonBlock>
a
CODEC
field_46293
CODEC
public static final BooleanProperty
b
POWERED
field_10729
POWERED
private static final int
M
PRESSED_DEPTH
field_31040
field_31040
private static final int
N
UNPRESSED_DEPTH
field_31041
field_31041
protected static final int
c
HALF_AABB_HEIGHT
field_31042
field_31042
protected static final int
d
HALF_AABB_WIDTH
field_31043
field_31043
protected static final VoxelShape
e
CEILING_AABB_X
field_10721
CEILING_X_SHAPE
protected static final VoxelShape
f
CEILING_AABB_Z
field_10727
CEILING_Z_SHAPE
protected static final VoxelShape
g
FLOOR_AABB_X
field_10723
FLOOR_X_SHAPE
protected static final VoxelShape
h
FLOOR_AABB_Z
field_10716
FLOOR_Z_SHAPE
protected static final VoxelShape
i
NORTH_AABB
field_10728
NORTH_SHAPE
protected static final VoxelShape
j
SOUTH_AABB
field_10715
SOUTH_SHAPE
protected static final VoxelShape
k
WEST_AABB
field_10731
WEST_SHAPE
protected static final VoxelShape
l
EAST_AABB
field_10720
EAST_SHAPE
protected static final VoxelShape
m
PRESSED_CEILING_AABB_X
field_10717
CEILING_X_PRESSED_SHAPE
protected static final VoxelShape
n
PRESSED_CEILING_AABB_Z
field_10726
CEILING_Z_PRESSED_SHAPE
protected static final VoxelShape
o
PRESSED_FLOOR_AABB_X
field_10722
FLOOR_X_PRESSED_SHAPE
protected static final VoxelShape
G
PRESSED_FLOOR_AABB_Z
field_10730
FLOOR_Z_PRESSED_SHAPE
protected static final VoxelShape
H
PRESSED_NORTH_AABB
field_10719
NORTH_PRESSED_SHAPE
protected static final VoxelShape
I
PRESSED_SOUTH_AABB
field_10724
SOUTH_PRESSED_SHAPE
protected static final VoxelShape
J
PRESSED_WEST_AABB
field_10732
WEST_PRESSED_SHAPE
protected static final VoxelShape
K
PRESSED_EAST_AABB
field_10718
EAST_PRESSED_SHAPE
private final BlockSetType
O
type
field_42753
blockSetType
private final int
P
ticksToStayPressed
field_40298
pressTicks

Constructor summary

ModifierConstructor
protected (BlockSetType blockSetType, int pressTicks, BlockBehaviour$Properties settings)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<ButtonBlock>
a()
codec()
method_53969()
getCodec()
protected VoxelShape
a(dwy arg0, dfo arg1, ji arg2, fbg 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)
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)
onUse(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3, BlockHitResult arg4)
protected void
a(dwy arg0, ard arg1, ji arg2, dgb arg3, BiConsumer<cwq, ji> 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)
onExploded(BlockState arg0, ServerWorld arg1, BlockPos arg2, Explosion arg3, BiConsumer<ItemStack, BlockPos> arg4)
public void
a(dwy arg0, dgj arg1, ji arg2, coy arg3)
press(BlockState arg0, Level arg1, BlockPos arg2, Player arg3)
method_21845(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3)
powerOn(BlockState state, World world, BlockPos pos, PlayerEntity player)
protected void
a(coy arg0, dgk arg1, ji 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)
playClickSound(PlayerEntity player, WorldAccess world, BlockPos pos, boolean powered)
protected SoundEvent
a(boolean arg0)
getSound(boolean arg0)
method_9712(boolean arg0)
getClickSound(boolean powered)
protected void
a(dwy arg0, dgj arg1, ji arg2, dwy 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)
protected int
a(dwy arg0, dfo arg1, ji arg2, jn 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)
protected int
b(dwy arg0, dfo arg1, ji arg2, jn 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)
protected boolean
f_(dwy arg0)
isSignalSource(BlockState arg0)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
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)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected void
a(dwy arg0, dgj arg1, ji arg2, bum arg3)
entityInside(BlockState arg0, Level arg1, BlockPos arg2, Entity arg3)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3)
protected void
d(dwy arg0, dgj arg1, ji arg2)
checkPressed(BlockState arg0, Level arg1, BlockPos arg2)
method_9715(class_2680 arg0, class_1937 arg1, class_2338 arg2)
tryPowerWithProjectiles(BlockState state, World world, BlockPos pos)
private void
e(dwy arg0, dgj arg1, ji arg2)
updateNeighbours(BlockState arg0, Level arg1, BlockPos arg2)
method_9713(class_2680 arg0, class_1937 arg1, class_2338 arg2)
updateNeighbors(BlockState arg0, World arg1, BlockPos pos)
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)
appendProperties(StateManager$Builder<Block, BlockState> arg0)