net.minecraft.block

public abstract class AbstractPressurePlateBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.BasePressurePlateBlock
net.minecraft.class_2231
net.minecraft.block.AbstractPressurePlateBlock

Field summary

Modifier and TypeField
private static final VoxelShape
SHAPE_PRESSED
field_9942
PRESSED_SHAPE
private static final VoxelShape
SHAPE
field_9943
DEFAULT_SHAPE
protected static final Box
TOUCH_AABB
field_9941
BOX
protected final BlockSetType
type
field_42726
blockSetType

Constructor summary

ModifierConstructor
protected (AbstractBlock$Settings settings, BlockSetType blockSetType)

Method summary

Modifier and TypeMethod
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected int
getPressedTime()
method_9563()
getTickRate()
public boolean
isPossibleToRespawnInThis(BlockState state)
method_9538(class_2680 arg0)
canMobSpawnInside(BlockState arg0)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
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)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
protected boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
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
entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3, class_10774 arg4, boolean arg5)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3, EntityCollisionHandler arg4, boolean arg5)
private void
checkPressed(Entity sourceEntity, Level level, BlockPos pos, BlockState state, int oldSignal)
method_9433(class_1297 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, int arg4)
updatePlateState(Entity entity, World world, BlockPos pos, BlockState state, int output)
protected void
affectNeighborsAfterRemoval(BlockState state, ServerLevel level, BlockPos pos, boolean movedByPiston)
method_66388(class_2680 arg0, class_3218 arg1, class_2338 arg2, boolean arg3)
onStateReplaced(BlockState arg0, ServerWorld arg1, BlockPos arg2, boolean arg3)
protected void
updateNeighbours(Level level, BlockPos pos)
method_9437(class_1937 arg0, class_2338 arg1)
updateNeighbors(World world, BlockPos pos)
protected int
getDirectSignal(BlockState state, BlockGetter level, BlockPos pos, Direction direction)
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
isSignalSource(BlockState state)
method_9506(class_2680 arg0)
emitsRedstonePower(BlockState arg0)
protected int
ownSignal(BlockState state, BlockGetter level, BlockPos pos)
method_1_5240(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getWeakRedstonePower(BlockState arg0, BlockView arg1, BlockPos arg2)
protected static int
getEntityCount(Level level, AABB entityDetectionBox, Class<? extends Entity> entityClass)
method_52210(class_1937 arg0, class_238 arg1, Class<? extends class_1297> arg2)
getEntityCount(World world, Box box, Class<? extends Entity> entityClass)
protected abstract int
getSignalStrength(Level level, BlockPos pos)
method_9434(class_1937 arg0, class_2338 arg1)
getRedstoneOutput(World world, BlockPos pos)
protected abstract int
getSignalForState(BlockState state)
method_9435(class_2680 arg0)
getRedstoneOutput(BlockState state)
protected abstract BlockState
setSignalForState(BlockState state, int signal)
method_9432(class_2680 arg0, int arg1)
setRedstoneOutput(BlockState state, int rsOut)
private static boolean
lambda$getEntityCount$0(Entity arg0)
method_52209(class_1297 arg0)
method_52209(Entity entity)