public class PistonHeadBlock extends FacingBlock
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
FACING
LOGGER, STATE_IDS, stateManager
collidable, 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, toString
calcBlockBreakingDelta, 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, scheduledTick
public 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 AbstractBlock
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
getOutlineShape
in class AbstractBlock
private 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 AbstractBlock
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate
in class AbstractBlock
public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt
in class AbstractBlock
public 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 Block
public BlockState rotate(BlockState state, BlockRotation rotation)
By default, this returns the provided block state.
rotate
in class AbstractBlock
public BlockState mirror(BlockState state, BlockMirror mirror)
mirror
in class AbstractBlock
protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties
in class Block
public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)
canPathfindThrough
in class AbstractBlock