public class WeightedPressurePlateBlock extends AbstractPressurePlateBlock
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static IntProperty |
POWER |
private int |
weight |
BOX, DEFAULT_SHAPE, PRESSED_SHAPELOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
WeightedPressurePlateBlock(int weight,
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 int |
getTickRate() |
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, 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 IntProperty POWER
private final int weight
protected WeightedPressurePlateBlock(int weight,
AbstractBlock.Settings settings)
protected int getRedstoneOutput(World world, BlockPos pos)
getRedstoneOutput 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(BlockState state)
getRedstoneOutput in class AbstractPressurePlateBlockprotected BlockState setRedstoneOutput(BlockState state, int rsOut)
setRedstoneOutput in class AbstractPressurePlateBlockprotected int getTickRate()
getTickRate in class AbstractPressurePlateBlockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Block