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_AABB
BLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomly
delegate
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, 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 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 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 getRedstoneStrength(BlockState state)
getRedstoneStrength
in class AbstractPressurePlateBlock
protected BlockState setRedstoneStrength(BlockState state, int strength)
setRedstoneStrength
in class AbstractPressurePlateBlock
public int tickRate(IWorldReader worldIn)
tickRate
in class AbstractPressurePlateBlock
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer
in class Block