public class PressurePlateBlock extends AbstractPressurePlateBlock
| Modifier and Type | Class and Description |
|---|---|
static class |
PressurePlateBlock.ActivationRule |
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static BooleanProperty |
POWERED |
private PressurePlateBlock.ActivationRule |
type |
BOX, DEFAULT_SHAPE, PRESSED_SHAPELOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
PressurePlateBlock(PressurePlateBlock.ActivationRule type,
AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendProperties(StateManager.Builder<Block,BlockState> builder) |
protected int |
getRedstoneOutput(BlockState state) |
protected int |
getRedstoneOutput(World world,
BlockPos pos) |
protected void |
playDepressSound(WorldAccess world,
BlockPos pos) |
protected void |
playPressSound(WorldAccess world,
BlockPos pos) |
protected BlockState |
setRedstoneOutput(BlockState state,
int rsOut) |
canMobSpawnInside, canPlaceAt, emitsRedstonePower, getOutlineShape, getPistonBehavior, getStateForNeighborUpdate, getStrongRedstonePower, getTickRate, getWeakRedstonePower, onEntityCollision, onStateReplaced, scheduledTick, updateNeighbors, updatePlateStateaddStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getVisualShape, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick, rotatepublic static final BooleanProperty POWERED
private final PressurePlateBlock.ActivationRule type
protected PressurePlateBlock(PressurePlateBlock.ActivationRule type, AbstractBlock.Settings settings)
protected int getRedstoneOutput(BlockState state)
getRedstoneOutput in class AbstractPressurePlateBlockprotected BlockState setRedstoneOutput(BlockState state, int rsOut)
setRedstoneOutput in class AbstractPressurePlateBlockprotected void playPressSound(WorldAccess world, BlockPos pos)
playPressSound in class AbstractPressurePlateBlockprotected void playDepressSound(WorldAccess world, BlockPos pos)
playDepressSound in class AbstractPressurePlateBlockprotected int getRedstoneOutput(World world, BlockPos pos)
getRedstoneOutput in class AbstractPressurePlateBlockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Block