Package net.minecraft.block
Class PistonHeadBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.FacingBlock
net.minecraft.block.PistonHeadBlock
- All Implemented Interfaces:
ItemConvertible
public class PistonHeadBlock extends FacingBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.AbstractBlock
AbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A> -
Field Summary
Fields Modifier and Type Field Description protected static VoxelShapeDOWN_ARM_SHAPEprotected static VoxelShapeDOWN_HEAD_SHAPEprotected static VoxelShapeEAST_ARM_SHAPEprotected static VoxelShapeEAST_HEAD_SHAPEprotected static VoxelShapeNORTH_ARM_SHAPEprotected static VoxelShapeNORTH_HEAD_SHAPEstatic BooleanPropertySHORTprotected static VoxelShapeSHORT_DOWN_ARM_SHAPEprotected static VoxelShapeSHORT_EAST_ARM_SHAPEprotected static VoxelShapeSHORT_NORTH_ARM_SHAPEprotected static VoxelShapeSHORT_SOUTH_ARM_SHAPEprotected static VoxelShapeSHORT_UP_ARM_SHAPEprotected static VoxelShapeSHORT_WEST_ARM_SHAPEprotected static VoxelShapeSOUTH_ARM_SHAPEprotected static VoxelShapeSOUTH_HEAD_SHAPEstatic EnumProperty<PistonType>TYPEprotected static VoxelShapeUP_ARM_SHAPEprotected static VoxelShapeUP_HEAD_SHAPEprotected static VoxelShapeWEST_ARM_SHAPEprotected static VoxelShapeWEST_HEAD_SHAPEFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description PistonHeadBlock(AbstractBlock.Settings settings) -
Method Summary
Methods inherited from class net.minecraft.block.Block
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, is, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, isTranslucent, method_30094, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
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, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onSyncedBlockEvent, onUse, prepare, randomTick, scheduledTick
-
Field Details
-
TYPE
-
SHORT
-
EAST_HEAD_SHAPE
-
WEST_HEAD_SHAPE
-
SOUTH_HEAD_SHAPE
-
NORTH_HEAD_SHAPE
-
UP_HEAD_SHAPE
-
DOWN_HEAD_SHAPE
-
UP_ARM_SHAPE
-
DOWN_ARM_SHAPE
-
SOUTH_ARM_SHAPE
-
NORTH_ARM_SHAPE
-
EAST_ARM_SHAPE
-
WEST_ARM_SHAPE
-
SHORT_UP_ARM_SHAPE
-
SHORT_DOWN_ARM_SHAPE
-
SHORT_SOUTH_ARM_SHAPE
-
SHORT_NORTH_ARM_SHAPE
-
SHORT_EAST_ARM_SHAPE
-
SHORT_WEST_ARM_SHAPE
-
-
Constructor Details
-
Method Details
-
getHeadShape
-
hasSidedTransparency
- Overrides:
hasSidedTransparencyin classAbstractBlock
-
getOutlineShape
public VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context)- Overrides:
getOutlineShapein classAbstractBlock
-
getArmShape
-
method_26980
-
onBreak
-
onStateReplaced
public void onStateReplaced(BlockState state, World world, BlockPos pos, BlockState newState, boolean moved)Called inWorldChunk.setBlockState(BlockPos, BlockState, boolean)ifnewStateis different fromstate. Vanilla blocks perform removal cleanups here.- Overrides:
onStateReplacedin classAbstractBlock
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)- Overrides:
getStateForNeighborUpdatein classAbstractBlock
-
canPlaceAt
- Overrides:
canPlaceAtin classAbstractBlock
-
neighborUpdate
public void neighborUpdate(BlockState state, World world, BlockPos pos, Block block, BlockPos fromPos, boolean notify)- Overrides:
neighborUpdatein classAbstractBlock
-
getPickStack
@Environment(CLIENT) public ItemStack getPickStack(BlockView world, BlockPos pos, BlockState state)- Overrides:
getPickStackin classBlock
-
rotate
- Overrides:
rotatein classAbstractBlock
-
mirror
- Overrides:
mirrorin classAbstractBlock
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-
canPathfindThrough
public boolean canPathfindThrough(BlockState state, BlockView world, BlockPos pos, NavigationType type)- Overrides:
canPathfindThroughin classAbstractBlock
-