public class PistonBlock extends DirectionalBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
static BooleanProperty |
EXTENDED |
protected static VoxelShape |
PISTON_BASE_DOWN_AABB |
protected static VoxelShape |
PISTON_BASE_EAST_AABB |
protected static VoxelShape |
PISTON_BASE_NORTH_AABB |
protected static VoxelShape |
PISTON_BASE_SOUTH_AABB |
protected static VoxelShape |
PISTON_BASE_UP_AABB |
protected static VoxelShape |
PISTON_BASE_WEST_AABB |
FACINGBLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Constructor and Description |
|---|
PistonBlock(boolean sticky,
Block.Properties properties) |
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, doesSideFillSquare, dropXpOnBlockBreak, fillItemGroup, fillWithRain, func_220055_a, func_220064_c, func_220080_a, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderLayer, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasSolidSide, hasTileEntity, isAir, isDirt, isIn, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, makeCuboidShape, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockClicked, onBlockHarvested, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighbors, updatePostPlacementgetRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canBeReplacedByLogs, canConnectRedstone, canCreatureSpawn, canDropFromExplosion, canEntityDestroy, canHarvestBlock, canRenderInLayer, catchFire, collisionExtendsVertically, createTileEntity, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getEnchantPowerBonus, getExpDrop, getExplosionResistance, getExtendedState, getFireSpreadSpeed, getFlammability, getFogColor, getLightValue, getPickBlock, getRayTraceResult, getSoundType, getStateAtViewpoint, getStateForPlacement, getValidRotations, getWeakChanges, hasTileEntity, isAir, isBeaconBase, isBed, isBedFoot, isBurning, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, setBedOccupied, shouldCheckWeakPowerpublic static final BooleanProperty EXTENDED
protected static final VoxelShape PISTON_BASE_EAST_AABB
protected static final VoxelShape PISTON_BASE_WEST_AABB
protected static final VoxelShape PISTON_BASE_SOUTH_AABB
protected static final VoxelShape PISTON_BASE_NORTH_AABB
protected static final VoxelShape PISTON_BASE_UP_AABB
protected static final VoxelShape PISTON_BASE_DOWN_AABB
public PistonBlock(boolean sticky,
Block.Properties properties)
public boolean causesSuffocation(BlockState state, IBlockReader worldIn, BlockPos pos)
causesSuffocation in class Blockpublic VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
public boolean isNormalCube(BlockState state, IBlockReader worldIn, BlockPos pos)
isNormalCube in class Blockpublic void onBlockPlacedBy(World worldIn, BlockPos pos, BlockState state, LivingEntity placer, ItemStack stack)
onBlockPlacedBy in class Blockpublic void neighborChanged(BlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos, boolean isMoving)
neighborChanged in class Blockpublic void onBlockAdded(BlockState state, World worldIn, BlockPos pos, BlockState oldState, boolean isMoving)
onBlockAdded in class Blockpublic BlockState getStateForPlacement(BlockItemUseContext context)
getStateForPlacement in class Blockpublic boolean eventReceived(BlockState state, World worldIn, BlockPos pos, int id, int param)
eventReceived in class Blockpublic static boolean canPush(BlockState blockStateIn, World worldIn, BlockPos pos, Direction facing, boolean destroyBlocks, Direction p_185646_5_)
public BlockState rotate(BlockState state, Rotation rot)
public BlockState rotate(BlockState state, IWorld world, BlockPos pos, Rotation direction)
public BlockState mirror(BlockState state, Mirror mirrorIn)
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Blockpublic boolean func_220074_n(BlockState state)
func_220074_n in class Blockpublic boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement in class Block