public class PistonHeadBlock extends FacingBlock
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>FACINGLOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Constructor and Description |
|---|
PistonHeadBlock(AbstractBlock.Settings settings) |
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, is, isFaceFullSquare, isIn, isShapeFullCube, isTranslucent, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, isSideInvisible, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTickpublic static final EnumProperty<PistonType> TYPE
public static final BooleanProperty SHORT
protected static final VoxelShape EAST_HEAD_SHAPE
protected static final VoxelShape WEST_HEAD_SHAPE
protected static final VoxelShape SOUTH_HEAD_SHAPE
protected static final VoxelShape NORTH_HEAD_SHAPE
protected static final VoxelShape UP_HEAD_SHAPE
protected static final VoxelShape DOWN_HEAD_SHAPE
protected static final VoxelShape UP_ARM_SHAPE
protected static final VoxelShape DOWN_ARM_SHAPE
protected static final VoxelShape SOUTH_ARM_SHAPE
protected static final VoxelShape NORTH_ARM_SHAPE
protected static final VoxelShape EAST_ARM_SHAPE
protected static final VoxelShape WEST_ARM_SHAPE
protected static final VoxelShape SHORT_UP_ARM_SHAPE
protected static final VoxelShape SHORT_DOWN_ARM_SHAPE
protected static final VoxelShape SHORT_SOUTH_ARM_SHAPE
protected static final VoxelShape SHORT_NORTH_ARM_SHAPE
protected static final VoxelShape SHORT_EAST_ARM_SHAPE
protected static final VoxelShape SHORT_WEST_ARM_SHAPE
private static final VoxelShape[] field_26660
private static final VoxelShape[] field_26661
public PistonHeadBlock(AbstractBlock.Settings settings)
private static VoxelShape[] method_31019(boolean bool)
private static VoxelShape getHeadShape(Direction direction, boolean bool)
public boolean hasSidedTransparency(BlockState state)
hasSidedTransparency in class AbstractBlockpublic VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape in class AbstractBlockprivate boolean method_26980(BlockState blockState, BlockState blockState2)
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)
WorldChunk.setBlockState(BlockPos, BlockState, boolean) if newState is different from state. Vanilla blocks perform removal cleanups here.onStateReplaced in class AbstractBlockpublic BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate in class AbstractBlockpublic boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class AbstractBlockpublic void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)
neighborUpdate in class AbstractBlock@Environment(value=CLIENT) public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state)
getPickStack in class Blockpublic BlockState rotate(BlockState state, BlockRotation rotation)
By default, this returns the provided block state.
rotate in class AbstractBlockpublic BlockState mirror(BlockState state, BlockMirror mirror)
mirror in class AbstractBlockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockpublic boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
canPathfindThrough in class AbstractBlock