public class WeightedPressurePlateBlock extends AbstractPressurePlateBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
private int |
maxWeight |
static IntegerProperty |
POWER |
PRESSED_AABB, PRESSURE_AABB, UNPRESSED_AABBBLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Modifier | Constructor and Description |
|---|---|
protected |
WeightedPressurePlateBlock(int p_i48295_1_,
Block.Properties p_i48295_2_) |
| 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) |
int |
tickRate(IWorldReader worldIn) |
canProvidePower, canSpawnInBlock, getPushReaction, getShape, getStrongPower, getWeakPower, isValidPosition, onEntityCollision, onReplaced, tick, updateNeighbors, updatePostPlacement, updateStateaddInformation, 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, updateNeighborsgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, 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, shouldDisplayFluidOverlaypublic static final IntegerProperty POWER
private final int maxWeight
protected WeightedPressurePlateBlock(int p_i48295_1_,
Block.Properties p_i48295_2_)
protected int computeRedstoneStrength(World worldIn, BlockPos pos)
computeRedstoneStrength in class AbstractPressurePlateBlockprotected void playClickOnSound(IWorld worldIn, BlockPos pos)
playClickOnSound in class AbstractPressurePlateBlockprotected void playClickOffSound(IWorld worldIn, BlockPos pos)
playClickOffSound in class AbstractPressurePlateBlockprotected int getRedstoneStrength(BlockState state)
getRedstoneStrength in class AbstractPressurePlateBlockprotected BlockState setRedstoneStrength(BlockState state, int strength)
setRedstoneStrength in class AbstractPressurePlateBlockpublic int tickRate(IWorldReader worldIn)
tickRate in class AbstractPressurePlateBlockprotected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Block