public class BlockPressurePlate extends BlockBasePressurePlate
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockPressurePlate.Sensitivity |
Block.EnumOffsetTypeIForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>| Modifier and Type | Field and Description |
|---|---|
static PropertyBool |
POWERED |
PRESSED_AABB, PRESSURE_AABB, UNPRESSED_AABBBLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, isBlockContainer, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightnessdelegate| Modifier | Constructor and Description |
|---|---|
protected |
BlockPressurePlate(Material materialIn,
BlockPressurePlate.Sensitivity sensitivityIn) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
computeRedstoneStrength(World worldIn,
BlockPos pos) |
protected BlockStateContainer |
createBlockState() |
int |
getMetaFromState(IBlockState state)
Convert the BlockState into the correct metadata value
|
protected int |
getRedstoneStrength(IBlockState state) |
IBlockState |
getStateFromMeta(int meta)
Convert the given metadata into a BlockState for this Block
|
protected void |
playClickOffSound(World worldIn,
BlockPos pos) |
protected void |
playClickOnSound(World worldIn,
BlockPos color) |
protected IBlockState |
setRedstoneStrength(IBlockState state,
int strength) |
breakBlock, canPlaceBlockAt, canProvidePower, canSpawnInBlock, getBoundingBox, getCollisionBoundingBox, getMobilityFlag, getStrongPower, getWeakPower, isFullCube, isOpaqueCube, isPassable, neighborChanged, onEntityCollidedWithBlock, randomTick, tickRate, updateNeighbors, updateState, updateTickaddCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, damageDropped, disableStats, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSoundType, getSoundType, getStateById, getStateForPlacement, getStateForPlacement, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBlockSolid, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isFullyOpaque, isLadder, isLeaves, isNormalCube, isNormalCube, isReplaceable, isReplaceableOreGen, isSideSolid, isToolEffective, isTranslucent, isWood, modifyAcceleration, observedNeighborChange, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, toString, withMirror, withRotationgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNamepublic static final PropertyBool POWERED
protected BlockPressurePlate(Material materialIn, BlockPressurePlate.Sensitivity sensitivityIn)
protected int getRedstoneStrength(IBlockState state)
getRedstoneStrength in class BlockBasePressurePlateprotected IBlockState setRedstoneStrength(IBlockState state, int strength)
setRedstoneStrength in class BlockBasePressurePlateprotected void playClickOnSound(World worldIn, BlockPos color)
playClickOnSound in class BlockBasePressurePlateprotected void playClickOffSound(World worldIn, BlockPos pos)
playClickOffSound in class BlockBasePressurePlateprotected int computeRedstoneStrength(World worldIn, BlockPos pos)
computeRedstoneStrength in class BlockBasePressurePlatepublic IBlockState getStateFromMeta(int meta)
getStateFromMeta in class Blockpublic int getMetaFromState(IBlockState state)
getMetaFromState in class Blockprotected BlockStateContainer createBlockState()
createBlockState in class Block