public class PressurePlateBlock extends AbstractPressurePlateBlock
Modifier and Type | Class and Description |
---|---|
static class |
PressurePlateBlock.Sensitivity |
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
static BooleanProperty |
POWERED |
private PressurePlateBlock.Sensitivity |
sensitivity |
PRESSED_AABB, PRESSURE_AABB, UNPRESSED_AABB
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
Modifier | Constructor and Description |
---|---|
protected |
PressurePlateBlock(PressurePlateBlock.Sensitivity sensitivityIn,
Block.Properties propertiesIn) |
Modifier and Type | Method and Description |
---|---|
protected int |
computeRedstoneStrength(World worldIn,
BlockPos pos) |
protected void |
fillStateContainer(StateContainer.Builder<Block,BlockState> builder) |
protected int |
getRedstoneStrength(BlockState state) |
protected void |
playClickOffSound(IWorld worldIn,
BlockPos pos) |
protected void |
playClickOnSound(IWorld worldIn,
BlockPos pos) |
protected BlockState |
setRedstoneStrength(BlockState state,
int strength) |
canProvidePower, canSpawnInBlock, getPushReaction, getShape, getStrongPower, getWeakPower, isValidPosition, onEntityCollision, onReplaced, tick, tickRate, updateNeighbors, updatePostPlacement, updateState
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getTags, getTranslationKey, getValidBlockForPosition, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isTransparent, isVariableOpacity, isViewBlocking, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlay
public static final BooleanProperty POWERED
private final PressurePlateBlock.Sensitivity sensitivity
protected PressurePlateBlock(PressurePlateBlock.Sensitivity sensitivityIn, Block.Properties propertiesIn)
protected int getRedstoneStrength(BlockState state)
getRedstoneStrength
in class AbstractPressurePlateBlock
protected BlockState setRedstoneStrength(BlockState state, int strength)
setRedstoneStrength
in class AbstractPressurePlateBlock
protected void playClickOnSound(IWorld worldIn, BlockPos pos)
playClickOnSound
in class AbstractPressurePlateBlock
protected void playClickOffSound(IWorld worldIn, BlockPos pos)
playClickOffSound
in class AbstractPressurePlateBlock
protected int computeRedstoneStrength(World worldIn, BlockPos pos)
computeRedstoneStrength
in class AbstractPressurePlateBlock
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
in class Block