public class PistonHeadBlock extends FacingBlock
Block.NeighborGroup
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>
Modifier and Type | Field and Description |
---|---|
protected static VoxelShape |
DOWN_ARM_SHAPE |
protected static VoxelShape |
DOWN_HEAD_SHAPE |
protected static VoxelShape |
EAST_ARM_SHAPE |
protected static VoxelShape |
EAST_HEAD_SHAPE |
protected static VoxelShape |
NORTH_ARM_SHAPE |
protected static VoxelShape |
NORTH_HEAD_SHAPE |
static BooleanProperty |
SHORT |
protected static VoxelShape |
SHORT_DOWN_ARM_SHAPE |
protected static VoxelShape |
SHORT_EAST_ARM_SHAPE |
protected static VoxelShape |
SHORT_NORTH_ARM_SHAPE |
protected static VoxelShape |
SHORT_SOUTH_ARM_SHAPE |
protected static VoxelShape |
SHORT_UP_ARM_SHAPE |
protected static VoxelShape |
SHORT_WEST_ARM_SHAPE |
protected static VoxelShape |
SOUTH_ARM_SHAPE |
protected static VoxelShape |
SOUTH_HEAD_SHAPE |
static EnumProperty<PistonType> |
TYPE |
protected static VoxelShape |
UP_ARM_SHAPE |
protected static VoxelShape |
UP_HEAD_SHAPE |
protected static VoxelShape |
WEST_ARM_SHAPE |
protected static VoxelShape |
WEST_HEAD_SHAPE |
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, asBlock, asItem, buildTooltip, 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, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, isTranslucent, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toString
calcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getPistonBehavior, getRayTraceShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, isSideInvisible, onBlockAction, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, 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
public PistonHeadBlock(AbstractBlock.Settings settings)
private VoxelShape getHeadShape(BlockState state)
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 VoxelShape getArmShape(BlockState state)
private boolean method_26980(BlockState blockState, BlockState blockState2)
public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
public void onBlockRemoved(BlockState state, World world, BlockPos pos, BlockState newState, boolean notify)
onBlockRemoved
in class AbstractBlock
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, IWorld 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)
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