public class BlockPressurePlateWeighted extends BlockBasePressurePlate
Block.EnumOffsetType
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
Modifier and Type | Field and Description |
---|---|
private int |
maxWeight |
static PropertyInteger |
POWER |
PRESSED_AABB, PRESSURE_AABB, UNPRESSED_AABB
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockMaterial, blockParticleGravity, blockResistance, blockSoundType, blockState, capturedDrops, captureDrops, enableStats, FULL_BLOCK_AABB, fullBlock, harvesters, hasTileEntity, lightOpacity, lightValue, needsRandomTick, NULL_AABB, RANDOM, REGISTRY, slipperiness, translucent, useNeighborBrightness
delegate
Modifier | Constructor and Description |
---|---|
protected |
BlockPressurePlateWeighted(Material materialIn,
int p_i46379_2_) |
protected |
BlockPressurePlateWeighted(Material materialIn,
int p_i46380_2_,
MapColor color) |
Modifier and Type | Method and Description |
---|---|
protected int |
computeRedstoneStrength(World worldIn,
BlockPos pos) |
protected BlockStateContainer |
createBlockState() |
int |
getMetaFromState(IBlockState state) |
protected int |
getRedstoneStrength(IBlockState state) |
IBlockState |
getStateFromMeta(int meta) |
protected void |
playClickOffSound(World worldIn,
BlockPos pos) |
protected void |
playClickOnSound(World worldIn,
BlockPos color) |
protected IBlockState |
setRedstoneStrength(IBlockState state,
int strength) |
int |
tickRate(World worldIn) |
breakBlock, canPlaceBlockAt, canProvidePower, canSpawnInBlock, getBlockFaceShape, getBoundingBox, getCollisionBoundingBox, getMobilityFlag, getStrongPower, getWeakPower, isFullCube, isOpaqueCube, isPassable, neighborChanged, onEntityCollidedWithBlock, randomTick, updateNeighbors, updateState, updateTick
addCollisionBoxToList, addCollisionBoxToList, addDestroyEffects, addHitEffects, addInformation, addLandingEffects, addRunningEffects, beginLeavesDecay, canBeConnectedTo, canBeReplacedByLeaves, canCollideCheck, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canEntitySpawn, canHarvestBlock, canPlaceBlockOnSide, canPlaceTorchOnTop, canRenderInLayer, canSilkHarvest, canSilkHarvest, canSustainLeaves, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, createTileEntity, damageDropped, disableStats, doesSideBlockChestOpening, doesSideBlockRendering, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillWithRain, getActualState, getAiPathNodeType, getAiPathNodeType, getAmbientOcclusionLightValue, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlockById, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockLiquidHeight, getBlockState, getComparatorInputOverride, getCreativeTabToDisplayOn, getDefaultState, getDrops, getDrops, getEnableStats, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getHarvestLevel, getHarvestTool, getIdFromBlock, getItem, getItemDropped, getLightOpacity, getLightOpacity, getLightValue, getLightValue, getLocalizedName, getMapColor, getMaterial, getOffset, getOffsetType, getPackedLightmapCoords, getPickBlock, getPlayerRelativeBlockHardness, getRenderType, getSelectedBoundingBox, getSilkTouchDrop, getSlipperiness, getSoundType, getSoundType, getStateAtViewpoint, getStateById, getStateForPlacement, getStateForPlacement, getStateId, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getValidRotations, getWeakChanges, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, hasTileEntity, isAABBInsideLiquid, isAABBInsideMaterial, isAir, isAssociatedBlock, isBeaconBase, isBed, isBedFoot, isBlockNormalCube, isBurning, isCollidable, isEntityInsideMaterial, isEqualTo, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isFertile, isFireSource, isFlammable, isFoliage, isFullBlock, isLadder, isLeaves, isNormalCube, isNormalCube, isReplaceable, isReplaceableOreGen, isSideSolid, isStickyBlock, isToolEffective, isTopSolid, isTranslucent, isWood, modifyAcceleration, observedNeighborChange, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockExploded, onBlockHarvested, onBlockPlacedBy, onEntityWalk, onFallenUpon, onLanded, onNeighborChange, onPlantGrow, quantityDropped, quantityDropped, quantityDroppedWithBonus, randomDisplayTick, rayTrace, recolorBlock, registerBlocks, removedByPlayer, requiresUpdates, rotateBlock, setBedOccupied, setBlockUnbreakable, setCreativeTab, setDefaultSlipperiness, setDefaultState, setHardness, setHarvestLevel, setHarvestLevel, setLightLevel, setLightOpacity, setResistance, setSoundType, setTickRandomly, setUnlocalizedName, shouldCheckWeakPower, shouldSideBeRendered, spawnAsEntity, toString, withMirror, withRotation
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public static final PropertyInteger POWER
private final int maxWeight
protected BlockPressurePlateWeighted(Material materialIn, int p_i46379_2_)
protected int computeRedstoneStrength(World worldIn, BlockPos pos)
computeRedstoneStrength
in class BlockBasePressurePlate
protected void playClickOnSound(World worldIn, BlockPos color)
playClickOnSound
in class BlockBasePressurePlate
protected void playClickOffSound(World worldIn, BlockPos pos)
playClickOffSound
in class BlockBasePressurePlate
protected int getRedstoneStrength(IBlockState state)
getRedstoneStrength
in class BlockBasePressurePlate
protected IBlockState setRedstoneStrength(IBlockState state, int strength)
setRedstoneStrength
in class BlockBasePressurePlate
public int tickRate(World worldIn)
tickRate
in class BlockBasePressurePlate
public IBlockState getStateFromMeta(int meta)
getStateFromMeta
in class Block
public int getMetaFromState(IBlockState state)
getMetaFromState
in class Block
protected BlockStateContainer createBlockState()
createBlockState
in class Block