public class BlockPressurePlateWeighted extends BlockBasePressurePlate
Block.EnumOffsetType, Block.Properties, Block.RenderSideCacheKey
Modifier and Type | Field and Description |
---|---|
static IntegerProperty |
POWER |
PRESSED_AABB, PRESSURE_AABB, UNPRESSED_AABB
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockResistance, blocksMovement, capturedDrops, captureDrops, harvesters, lightValue, LOGGER, material, needsRandomTick, RANDOM, soundType, stateContainer
delegate
Modifier | Constructor and Description |
---|---|
protected |
BlockPressurePlateWeighted(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,IBlockState> builder) |
protected int |
getRedstoneStrength(IBlockState state) |
protected void |
playClickOffSound(IWorld worldIn,
BlockPos pos) |
protected void |
playClickOnSound(IWorld worldIn,
BlockPos pos) |
protected IBlockState |
setRedstoneStrength(IBlockState state,
int strength) |
int |
tickRate(IWorldReaderBase worldIn) |
canProvidePower, canSpawnInBlock, getBlockFaceShape, getPushReaction, getShape, getStrongPower, getWeakPower, isFullCube, isValidPosition, onEntityCollision, onReplaced, tick, updateNeighbors, updatePostPlacement, updateState
addInformation, allowsMovement, animateTick, asItem, canDropFromExplosion, canEntitySpawn, canSilkHarvest, canSilkHarvest, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, doesSideFillSquare, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getDefaultState, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getItemDropped, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getRaytraceShape, getRenderLayer, getRenderShape, getRenderType, getSilkTouchDrop, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateForPlacement, getStateId, getTickRandomly, getTranslationKey, getValidBlockForPosition, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, isAir, isBlockNormalCube, isCollidable, isCollidable, isDirt, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isTopSolid, isVariableOpacity, makeCuboidShape, mirror, needsPostProcessing, neighborChanged, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, quantityDropped, randomTick, registerBlocks, replaceBlock, rotate, setDefaultState, shouldSideBeRendered, spawnAsEntity, toString, updateDiagonalNeighbors, updateNeighbors, useNeighborBrightness
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canRenderInLayer, createTileEntity, doesSideBlockChestOpening, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getDrops, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isNormalCube, isReplaceableOreGen, isStickyBlock, isToolEffective, isTopSolid, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
public static final IntegerProperty POWER
protected BlockPressurePlateWeighted(int p_i48295_1_, Block.Properties p_i48295_2_)
protected int computeRedstoneStrength(World worldIn, BlockPos pos)
computeRedstoneStrength
in class BlockBasePressurePlate
protected void playClickOnSound(IWorld worldIn, BlockPos pos)
playClickOnSound
in class BlockBasePressurePlate
protected void playClickOffSound(IWorld worldIn, BlockPos pos)
playClickOffSound
in class BlockBasePressurePlate
protected int getRedstoneStrength(IBlockState state)
getRedstoneStrength
in class BlockBasePressurePlate
protected IBlockState setRedstoneStrength(IBlockState state, int strength)
setRedstoneStrength
in class BlockBasePressurePlate
public int tickRate(IWorldReaderBase worldIn)
tickRate
in class BlockBasePressurePlate
protected void fillStateContainer(StateContainer.Builder<Block,IBlockState> builder)
fillStateContainer
in class Block