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.NeighborGroup
Nested 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 IntProperty
POWER
private int
weight
Fields inherited from class net.minecraft.block.AbstractPressurePlateBlock
BOX, DEFAULT_SHAPE, PRESSED_SHAPE
Fields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManager
Fields 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 protected
WeightedPressurePlateBlock(int weight, AbstractBlock.Settings settings)
-
Method Summary
Modifier and Type Method Description protected void
appendProperties(StateManager.Builder<Block,BlockState> builder)
protected int
getRedstoneOutput(BlockState state)
protected int
getRedstoneOutput(World world, BlockPos pos)
protected int
getTickRate()
protected void
playDepressSound(WorldAccess world, BlockPos pos)
protected void
playPressSound(WorldAccess world, BlockPos pos)
protected BlockState
setRedstoneOutput(BlockState state, int rsOut)
Methods inherited from class net.minecraft.block.AbstractPressurePlateBlock
canMobSpawnInside, canPlaceAt, emitsRedstonePower, getOutlineShape, getPistonBehavior, getStateForNeighborUpdate, getStrongRedstonePower, getWeakRedstonePower, onEntityCollision, onStateReplaced, scheduledTick, updateNeighbors, updatePlateState
Methods 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, toString
Methods 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:
getRedstoneOutput
in classAbstractPressurePlateBlock
-
playPressSound
- Specified by:
playPressSound
in classAbstractPressurePlateBlock
-
playDepressSound
- Specified by:
playDepressSound
in classAbstractPressurePlateBlock
-
getRedstoneOutput
- Specified by:
getRedstoneOutput
in classAbstractPressurePlateBlock
-
setRedstoneOutput
- Specified by:
setRedstoneOutput
in classAbstractPressurePlateBlock
-
getTickRate
protected int getTickRate()- Overrides:
getTickRate
in classAbstractPressurePlateBlock
-
appendProperties
- Overrides:
appendProperties
in classBlock
-