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 classPressurePlateBlock.ActivationRuleNested 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 BooleanPropertyPOWEREDprivate PressurePlateBlock.ActivationRuletypeFields 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 protectedPressurePlateBlock(PressurePlateBlock.ActivationRule type, 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 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, getTickRate, 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
-
POWERED
-
type
-
-
Constructor Details
-
PressurePlateBlock
protected PressurePlateBlock(PressurePlateBlock.ActivationRule type, AbstractBlock.Settings settings)
-
-
Method Details
-
getRedstoneOutput
- Specified by:
getRedstoneOutputin classAbstractPressurePlateBlock
-
setRedstoneOutput
- Specified by:
setRedstoneOutputin classAbstractPressurePlateBlock
-
playPressSound
- Specified by:
playPressSoundin classAbstractPressurePlateBlock
-
playDepressSound
- Specified by:
playDepressSoundin classAbstractPressurePlateBlock
-
getRedstoneOutput
- Specified by:
getRedstoneOutputin classAbstractPressurePlateBlock
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-