Package net.minecraft.block
Class WeightedPressurePlateBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractPressurePlateBlock
net.minecraft.block.WeightedPressurePlateBlock
- All Implemented Interfaces:
ItemConvertible
public class WeightedPressurePlateBlock extends AbstractPressurePlateBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description static IntPropertyPOWERprivate intweightFields inherited from class net.minecraft.block.AbstractPressurePlateBlock
BOX, DEFAULT_SHAPE, PRESSED_SHAPEFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Modifier Constructor Description protectedWeightedPressurePlateBlock(int weight, AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)protected intgetRedstoneOutput(BlockState state)protected intgetRedstoneOutput(World world, BlockPos pos)protected intgetTickRate()protected voidplayDepressSound(WorldAccess world, BlockPos pos)protected voidplayPressSound(WorldAccess world, BlockPos pos)protected BlockStatesetRedstoneOutput(BlockState state, int rsOut)Methods inherited from class net.minecraft.block.AbstractPressurePlateBlock
canMobSpawnInside, canPlaceAt, emitsRedstonePower, getOutlineShape, getPistonBehavior, getStateForNeighborUpdate, getStrongRedstonePower, getWeakRedstonePower, onEntityCollision, onStateReplaced, scheduledTick, updateNeighbors, updatePlateStateMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getVisualShape, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
-
Field Details
-
POWER
-
weight
private final int weight
-
-
Constructor Details
-
WeightedPressurePlateBlock
-
-
Method Details
-
getRedstoneOutput
- Specified by:
getRedstoneOutputin classAbstractPressurePlateBlock
-
playPressSound
- Specified by:
playPressSoundin classAbstractPressurePlateBlock
-
playDepressSound
- Specified by:
playDepressSoundin classAbstractPressurePlateBlock
-
getRedstoneOutput
- Specified by:
getRedstoneOutputin classAbstractPressurePlateBlock
-
setRedstoneOutput
- Specified by:
setRedstoneOutputin classAbstractPressurePlateBlock
-
getTickRate
protected int getTickRate()- Overrides:
getTickRatein classAbstractPressurePlateBlock
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-