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(IWorld world,
BlockPos pos) |
protected void |
playPressSound(IWorld world,
BlockPos pos) |
protected BlockState |
setRedstoneOutput(BlockState state,
int rsOut) |
canMobSpawnInside, canPlaceAt, emitsRedstonePower, getOutlineShape, getPistonBehavior, getStateForNeighborUpdate, getStrongRedstonePower, getWeakRedstonePower, onBlockRemoved, onEntityCollision, scheduledTick, updateNeighbors, updatePlateStateaddStacksForDisplay, afterBreak, asBlock, asItem, buildTooltip, 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, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getRayTraceShape, getRenderingSeed, getRenderType, getSidesShape, getVisualShape, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAction, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, 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(IWorld world, BlockPos pos)
playPressSound in class AbstractPressurePlateBlockprotected void playDepressSound(IWorld 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