public class PistonHeadBlock extends DirectionalBlock
Block.OffsetType, Block.Properties, Block.RenderSideCacheKey| Modifier and Type | Field and Description |
|---|---|
protected static VoxelShape |
DOWN_ARM_AABB |
protected static VoxelShape |
EAST_ARM_AABB |
protected static VoxelShape |
NORTH_ARM_AABB |
protected static VoxelShape |
PISTON_EXTENSION_DOWN_AABB |
protected static VoxelShape |
PISTON_EXTENSION_EAST_AABB |
protected static VoxelShape |
PISTON_EXTENSION_NORTH_AABB |
protected static VoxelShape |
PISTON_EXTENSION_SOUTH_AABB |
protected static VoxelShape |
PISTON_EXTENSION_UP_AABB |
protected static VoxelShape |
PISTON_EXTENSION_WEST_AABB |
static BooleanProperty |
SHORT |
protected static VoxelShape |
SHORT_DOWN_ARM_AABB |
protected static VoxelShape |
SHORT_EAST_ARM_AABB |
protected static VoxelShape |
SHORT_NORTH_ARM_AABB |
protected static VoxelShape |
SHORT_SOUTH_ARM_AABB |
protected static VoxelShape |
SHORT_UP_ARM_AABB |
protected static VoxelShape |
SHORT_WEST_ARM_AABB |
protected static VoxelShape |
SOUTH_ARM_AABB |
static EnumProperty<PistonType> |
TYPE |
protected static VoxelShape |
UP_ARM_AABB |
protected static VoxelShape |
WEST_ARM_AABB |
FACINGBLOCK_STATE_IDS, blockHardness, blockResistance, blocksMovement, lightValue, LOGGER, material, materialColor, RANDOM, soundType, stateContainer, ticksRandomlydelegate| Constructor and Description |
|---|
PistonHeadBlock(Block.Properties properties) |
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, cannotAttach, canProvidePower, canSpawnInBlock, canSustainPlant, causesSuffocation, doesSideFillSquare, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getContainer, getDefaultState, getDrops, getDrops, getDrops, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getJumpFactor, getLightValue, getLootTable, getMaterial, getMaterialColor, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderShape, getRenderType, getSlipperiness, getSlipperiness, getSoundType, getSpeedFactor, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTags, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasEnoughSolidSide, hasSolidSide, hasSolidSideOnTop, hasTileEntity, isAir, isEmissiveRendering, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isReplaceable, isSideInvisible, isSolid, isVariableOpacity, isViewBlocking, makeCuboidShape, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, onProjectileCollision, propagatesSkylightDown, randomTick, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAdditionalDrops, spawnAsEntity, spawnDrops, spawnDrops, spawnDrops, tick, tickRate, ticksRandomly, toString, updateDiagonalNeighbors, updateNeighborsgetRegistryName, 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, rotate, setBedOccupied, shouldCheckWeakPower, shouldDisplayFluidOverlaypublic static final EnumProperty<PistonType> TYPE
public static final BooleanProperty SHORT
protected static final VoxelShape PISTON_EXTENSION_EAST_AABB
protected static final VoxelShape PISTON_EXTENSION_WEST_AABB
protected static final VoxelShape PISTON_EXTENSION_SOUTH_AABB
protected static final VoxelShape PISTON_EXTENSION_NORTH_AABB
protected static final VoxelShape PISTON_EXTENSION_UP_AABB
protected static final VoxelShape PISTON_EXTENSION_DOWN_AABB
protected static final VoxelShape UP_ARM_AABB
protected static final VoxelShape DOWN_ARM_AABB
protected static final VoxelShape SOUTH_ARM_AABB
protected static final VoxelShape NORTH_ARM_AABB
protected static final VoxelShape EAST_ARM_AABB
protected static final VoxelShape WEST_ARM_AABB
protected static final VoxelShape SHORT_UP_ARM_AABB
protected static final VoxelShape SHORT_DOWN_ARM_AABB
protected static final VoxelShape SHORT_SOUTH_ARM_AABB
protected static final VoxelShape SHORT_NORTH_ARM_AABB
protected static final VoxelShape SHORT_EAST_ARM_AABB
protected static final VoxelShape SHORT_WEST_ARM_AABB
public PistonHeadBlock(Block.Properties properties)
private VoxelShape getExtensionShapeFromState(BlockState state)
public boolean isTransparent(BlockState state)
isTransparent in class Blockpublic VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context)
private VoxelShape getArmShapeFromState(BlockState state)
public void onBlockHarvested(World worldIn, BlockPos pos, BlockState state, PlayerEntity player)
onBlockHarvested in class Blockpublic void onReplaced(BlockState state, World worldIn, BlockPos pos, BlockState newState, boolean isMoving)
onReplaced in class Blockpublic BlockState updatePostPlacement(BlockState stateIn, Direction facing, BlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement in class Blockpublic boolean isValidPosition(BlockState state, IWorldReader worldIn, BlockPos pos)
isValidPosition in class Blockpublic void neighborChanged(BlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos, boolean isMoving)
neighborChanged in class Blockpublic ItemStack getItem(IBlockReader worldIn, BlockPos pos, BlockState state)
public BlockState rotate(BlockState state, Rotation rot)
public BlockState mirror(BlockState state, Mirror mirrorIn)
protected void fillStateContainer(StateContainer.Builder<Block,BlockState> builder)
fillStateContainer in class Blockpublic boolean allowsMovement(BlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement in class Block