public class BlockPistonExtension extends BlockDirectional
Block.EnumOffsetType, 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 |
FACING
BLOCK_STATE_IDS, blockHardness, blockMapColor, blockResistance, blocksMovement, capturedDrops, captureDrops, harvesters, lightValue, LOGGER, material, needsRandomTick, RANDOM, soundType, stateContainer
delegate
Constructor and Description |
---|
BlockPistonExtension(Block.Properties builder) |
addInformation, animateTick, asItem, canDropFromExplosion, canEntitySpawn, canProvidePower, canSilkHarvest, canSilkHarvest, canSpawnInBlock, canSustainPlant, captureDrops, causesSuffocation, collisionRayTrace, doesSideFillSquare, dropBlockAsItemWithChance, dropXpOnBlockBreak, eventReceived, fillItemGroup, fillWithRain, getAmbientOcclusionLightValue, getBlockFromItem, getBlockHardness, getCollisionShape, getComparatorInputOverride, getDefaultState, getExplosionResistance, getFluidState, getHarvestLevel, getHarvestTool, getItemDropped, getItemsToDropCount, getLightValue, getMapColor, getMaterial, getNameTextComponent, getOffset, getOffsetType, getOpacity, getPackedLightmapCoords, getPlayerRelativeBlockHardness, getPositionRandom, getPushReaction, getRaytraceShape, getRenderLayer, getRenderShape, getRenderType, getSilkTouchDrop, getSlipperiness, getSlipperiness, getSoundType, getStateById, getStateContainer, getStateForPlacement, getStateId, getStrongPower, getTickRandomly, getTranslationKey, getValidBlockForPosition, getWeakPower, harvestBlock, hasComparatorInputOverride, hasCustomBreakingProgress, hasTileEntity, isAir, isBlockNormalCube, isCollidable, isCollidable, isDirt, isExceptBlockForAttachWithPiston, isExceptionBlockForAttaching, isIn, isNormalCube, isOpaque, isOpaqueCube, isReplaceable, isRock, isSideInvisible, isSolid, isVariableOpacity, makeCuboidShape, needsPostProcessing, nudgeEntitiesWithNewState, onBlockActivated, onBlockAdded, onBlockClicked, onBlockPlacedBy, onEntityCollision, onEntityWalk, onExplosionDestroy, onFallenUpon, onLanded, onPlayerDestroy, propagatesSkylightDown, randomTick, registerBlocks, replaceBlock, setDefaultState, shouldSideBeRendered, spawnAsEntity, tick, tickRate, toString, updateDiagonalNeighbors, updateNeighbors, useNeighborBrightness
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addDestroyEffects, addHitEffects, addLandingEffects, addRunningEffects, beginLeaveDecay, canBeConnectedTo, canBeReplacedByLeaves, canConnectRedstone, canCreatureSpawn, canEntityDestroy, canHarvestBlock, canPlaceTorchOnTop, canRenderInLayer, createTileEntity, doesSideBlockChestOpening, doesSideBlockRendering, getAiPathNodeType, getBeaconColorMultiplier, getBedDirection, getBedSpawnPosition, getBlock, getDrops, 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, isNormalCube, isReplaceableOreGen, isStickyBlock, isToolEffective, isTopSolid, observedNeighborChange, onBlockExploded, onNeighborChange, onPlantGrow, recolorBlock, removedByPlayer, rotate, setBedOccupied, shouldCheckWeakPower
public 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 BlockPistonExtension(Block.Properties builder)
public VoxelShape getShape(IBlockState state, IBlockReader worldIn, BlockPos pos)
public boolean isTopSolid(IBlockState state)
isTopSolid
in class Block
public void onBlockHarvested(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player)
onBlockHarvested
in class Block
public void onReplaced(IBlockState state, World worldIn, BlockPos pos, IBlockState newState, boolean isMoving)
onReplaced
in class Block
public boolean isFullCube(IBlockState state)
isFullCube
in class Block
public int quantityDropped(IBlockState state, java.util.Random random)
quantityDropped
in class Block
public IBlockState updatePostPlacement(IBlockState stateIn, EnumFacing facing, IBlockState facingState, IWorld worldIn, BlockPos currentPos, BlockPos facingPos)
updatePostPlacement
in class Block
public boolean isValidPosition(IBlockState state, IWorldReaderBase worldIn, BlockPos pos)
isValidPosition
in class Block
public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos)
neighborChanged
in class Block
public ItemStack getItem(IBlockReader worldIn, BlockPos pos, IBlockState state)
public IBlockState rotate(IBlockState state, Rotation rot)
public IBlockState mirror(IBlockState state, Mirror mirrorIn)
protected void fillStateContainer(StateContainer.Builder<Block,IBlockState> builder)
fillStateContainer
in class Block
public BlockFaceShape getBlockFaceShape(IBlockReader worldIn, IBlockState state, BlockPos pos, EnumFacing face)
getBlockFaceShape
in class Block
public boolean allowsMovement(IBlockState state, IBlockReader worldIn, BlockPos pos, PathType type)
allowsMovement
in class Block