public class PressurePlateBlock extends AbstractPressurePlateBlock
Modifier and Type | Class and Description |
---|---|
static class |
PressurePlateBlock.ActivationRule |
Block.NeighborGroup
AbstractBlock.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_SHAPE
LOGGER, STATE_IDS, stateManager
collidable, 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, updatePlateState
addStacksForDisplay, 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, toString
calcBlockBreakingDelta, 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, rotate
public 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 AbstractPressurePlateBlock
protected BlockState setRedstoneOutput(BlockState state, int rsOut)
setRedstoneOutput
in class AbstractPressurePlateBlock
protected void playPressSound(WorldAccess world, BlockPos pos)
playPressSound
in class AbstractPressurePlateBlock
protected void playDepressSound(WorldAccess world, BlockPos pos)
playDepressSound
in class AbstractPressurePlateBlock
protected int getRedstoneOutput(World world, BlockPos pos)
getRedstoneOutput
in class AbstractPressurePlateBlock
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties
in class Block