public class WeightedPressurePlateBlock extends AbstractPressurePlateBlock
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and Description |
---|---|
static IntProperty |
POWER |
private int |
weight |
BOX, DEFAULT_SHAPE, PRESSED_SHAPE
LOGGER, STATE_IDS, stateManager
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier
Modifier | Constructor and Description |
---|---|
protected |
WeightedPressurePlateBlock(int weight,
AbstractBlock.Settings settings) |
Modifier and Type | Method and 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) |
canMobSpawnInside, canPlaceAt, emitsRedstonePower, getOutlineShape, getPistonBehavior, getStateForNeighborUpdate, getStrongRedstonePower, getWeakRedstonePower, onEntityCollision, onStateReplaced, scheduledTick, updateNeighbors, updatePlateState
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, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getVisualShape, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick, rotate
public static final IntProperty POWER
private final int weight
protected WeightedPressurePlateBlock(int weight, AbstractBlock.Settings settings)
protected int getRedstoneOutput(World world, BlockPos pos)
getRedstoneOutput
in class AbstractPressurePlateBlock
protected void playPressSound(WorldAccess world, BlockPos pos)
playPressSound
in class AbstractPressurePlateBlock
protected void playDepressSound(WorldAccess world, BlockPos pos)
playDepressSound
in class AbstractPressurePlateBlock
protected int getRedstoneOutput(BlockState state)
getRedstoneOutput
in class AbstractPressurePlateBlock
protected BlockState setRedstoneOutput(BlockState state, int rsOut)
setRedstoneOutput
in class AbstractPressurePlateBlock
protected int getTickRate()
getTickRate
in class AbstractPressurePlateBlock
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties
in class Block