Package net.minecraft.block
Class PressurePlateBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.AbstractPressurePlateBlock
net.minecraft.block.PressurePlateBlock
- All Implemented Interfaces:
ItemConvertible
public class PressurePlateBlock extends AbstractPressurePlateBlock
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PressurePlateBlock.ActivationRule
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 BooleanProperty
POWERED
private PressurePlateBlock.ActivationRule
type
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
PressurePlateBlock(PressurePlateBlock.ActivationRule type, 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 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, getTickRate, 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
-
POWERED
-
type
-
-
Constructor Details
-
PressurePlateBlock
protected PressurePlateBlock(PressurePlateBlock.ActivationRule type, AbstractBlock.Settings settings)
-
-
Method Details
-
getRedstoneOutput
- Specified by:
getRedstoneOutput
in classAbstractPressurePlateBlock
-
setRedstoneOutput
- Specified by:
setRedstoneOutput
in classAbstractPressurePlateBlock
-
playPressSound
- Specified by:
playPressSound
in classAbstractPressurePlateBlock
-
playDepressSound
- Specified by:
playDepressSound
in classAbstractPressurePlateBlock
-
getRedstoneOutput
- Specified by:
getRedstoneOutput
in classAbstractPressurePlateBlock
-
appendProperties
- Overrides:
appendProperties
in classBlock
-