public class BlockPistonExtension extends Block
| Modifier and Type | Class and Description | 
|---|---|
| static class  | BlockPistonExtension.EnumPistonType | 
Block.EnumOffsetType, Block.SoundType| Modifier and Type | Field and Description | 
|---|---|
| static PropertyDirection | FACING | 
| static PropertyBool | SHORT | 
| static PropertyEnum<BlockPistonExtension.EnumPistonType> | TYPE | 
BLOCK_STATE_IDS, blockHardness, blockMaterial, blockParticleGravity, blockRegistry, blockResistance, blockState, enableStats, field_181083_K, fullBlock, isBlockContainer, lightOpacity, lightValue, maxX, maxY, maxZ, minX, minY, minZ, needsRandomTick, SLIME_SOUND, slipperiness, soundTypeAnvil, soundTypeCloth, soundTypeGlass, soundTypeGrass, soundTypeGravel, soundTypeLadder, soundTypeMetal, soundTypePiston, soundTypeSand, soundTypeSnow, soundTypeStone, soundTypeWood, stepSound, translucent, useNeighborBrightness| Constructor and Description | 
|---|
| BlockPistonExtension() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addCollisionBoxesToList(World worldIn,
                       BlockPos pos,
                       IBlockState state,
                       AxisAlignedBB mask,
                       java.util.List<AxisAlignedBB> list,
                       Entity collidingEntity)Add all collision boxes of this Block to the list that intersect with the given mask. | 
| private void | applyCoreBounds(IBlockState state) | 
| void | applyHeadBounds(IBlockState state) | 
| void | breakBlock(World worldIn,
          BlockPos pos,
          IBlockState state) | 
| boolean | canPlaceBlockAt(World worldIn,
               BlockPos pos) | 
| boolean | canPlaceBlockOnSide(World worldIn,
                   BlockPos pos,
                   EnumFacing side)Check whether this Block can be placed on the given side | 
| protected BlockState | createBlockState() | 
| static EnumFacing | getFacing(int meta) | 
| Item | getItem(World worldIn,
       BlockPos pos) | 
| int | getMetaFromState(IBlockState state)Convert the BlockState into the correct metadata value | 
| IBlockState | getStateFromMeta(int meta)Convert the given metadata into a BlockState for this Block | 
| boolean | isFullCube() | 
| boolean | isOpaqueCube()Used to determine ambient occlusion and culling when rebuilding chunks for render | 
| void | onBlockHarvested(World worldIn,
                BlockPos pos,
                IBlockState state,
                EntityPlayer player) | 
| void | onNeighborBlockChange(World worldIn,
                     BlockPos pos,
                     IBlockState state,
                     Block neighborBlock)Called when a neighboring block changes. | 
| int | quantityDropped(java.util.Random random)Returns the quantity of items to drop on block destruction. | 
| void | setBlockBoundsBasedOnState(IBlockAccess worldIn,
                          BlockPos pos) | 
| boolean | shouldSideBeRendered(IBlockAccess worldIn,
                    BlockPos pos,
                    EnumFacing side) | 
canCollideCheck, canDropFromExplosion, canProvidePower, canReplace, canSilkHarvest, collisionRayTrace, colorMultiplier, colorMultiplier, createStackedBlock, damageDropped, disableStats, dropBlockAsItem, dropBlockAsItemWithChance, dropXpOnBlockBreak, fillWithRain, func_181623_g, getActualState, getAmbientOcclusionLightValue, getBlockBoundsMaxX, getBlockBoundsMaxY, getBlockBoundsMaxZ, getBlockBoundsMinX, getBlockBoundsMinY, getBlockBoundsMinZ, getBlockById, getBlockColor, getBlockFromItem, getBlockFromName, getBlockHardness, getBlockLayer, getBlockState, getCollisionBoundingBox, getComparatorInputOverride, getCreativeTabToDisplayOn, getDamageValue, getDefaultState, getEnableStats, getExplosionResistance, getIdFromBlock, getItemDropped, getLightOpacity, getLightValue, getLocalizedName, getMapColor, getMaterial, getMixedBrightnessForBlock, getMobilityFlag, getOffsetType, getPlayerRelativeBlockHardness, getRenderColor, getRenderType, getSelectedBoundingBox, getStateById, getStateForEntityRender, getStateId, getStrongPower, getSubBlocks, getTickRandomly, getUnlocalizedName, getUseNeighborBrightness, getWeakPower, harvestBlock, hasComparatorInputOverride, hasTileEntity, isAssociatedBlock, isBlockNormalCube, isBlockSolid, isCollidable, isEqualTo, isFlowerPot, isFullBlock, isNormalCube, isPassable, isReplaceable, isTranslucent, isVisuallyOpaque, modifyAcceleration, onBlockActivated, onBlockAdded, onBlockClicked, onBlockDestroyedByExplosion, onBlockDestroyedByPlayer, onBlockEventReceived, onBlockPlaced, onBlockPlacedBy, onEntityCollidedWithBlock, onEntityCollidedWithBlock, onFallenUpon, onLanded, quantityDroppedWithBonus, randomDisplayTick, randomTick, registerBlocks, requiresUpdates, setBlockBounds, setBlockBoundsForItemRender, setBlockUnbreakable, setCreativeTab, setDefaultState, setHardness, setLightLevel, setLightOpacity, setResistance, setStepSound, setTickRandomly, setUnlocalizedName, spawnAsEntity, tickRate, toString, updateTickpublic static final PropertyDirection FACING
public static final PropertyEnum<BlockPistonExtension.EnumPistonType> TYPE
public static final PropertyBool SHORT
public void onBlockHarvested(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player)
onBlockHarvested in class Blockpublic void breakBlock(World worldIn, BlockPos pos, IBlockState state)
breakBlock in class Blockpublic boolean isOpaqueCube()
isOpaqueCube in class Blockpublic boolean isFullCube()
isFullCube in class Blockpublic boolean canPlaceBlockAt(World worldIn, BlockPos pos)
canPlaceBlockAt in class Blockpublic boolean canPlaceBlockOnSide(World worldIn, BlockPos pos, EnumFacing side)
canPlaceBlockOnSide in class Blockpublic int quantityDropped(java.util.Random random)
quantityDropped in class Blockpublic void addCollisionBoxesToList(World worldIn, BlockPos pos, IBlockState state, AxisAlignedBB mask, java.util.List<AxisAlignedBB> list, Entity collidingEntity)
addCollisionBoxesToList in class Blockprivate void applyCoreBounds(IBlockState state)
public void setBlockBoundsBasedOnState(IBlockAccess worldIn, BlockPos pos)
setBlockBoundsBasedOnState in class Blockpublic void applyHeadBounds(IBlockState state)
public void onNeighborBlockChange(World worldIn, BlockPos pos, IBlockState state, Block neighborBlock)
onNeighborBlockChange in class Blockpublic boolean shouldSideBeRendered(IBlockAccess worldIn, BlockPos pos, EnumFacing side)
shouldSideBeRendered in class Blockpublic static EnumFacing getFacing(int meta)
public IBlockState getStateFromMeta(int meta)
getStateFromMeta in class Blockpublic int getMetaFromState(IBlockState state)
getMetaFromState in class Blockprotected BlockState createBlockState()
createBlockState in class Block