public class PistonBlock extends DirectionalBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
static BooleanProperty |
EXTENDED |
private boolean |
isSticky |
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, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItem, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isValidPosition, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockClicked, onBlockHarvested, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, onReplaced, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, 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, canStickTo, catchFire, collisionExtendsVertically, createTileEntity, 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, isConduitFrame, isFertile, isFireSource, isFlammable, isFoliage, isLadder, isPortalFrame, isReplaceableOreGen, isSlimeBlock, isStickyBlock, isToolEffective, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic 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
private final boolean isSticky
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 Blockprivate void checkForMove(World worldIn, BlockPos pos, BlockState state)
public 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_)
private boolean doMove(World worldIn, BlockPos pos, Direction directionIn, boolean extending)
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 isTransparent(BlockState state)
isTransparent in class Blockpublic boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement in class Block