Package net.minecraft.block
Class TallPlantBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.PlantBlock
net.minecraft.block.TallPlantBlock
- All Implemented Interfaces:
ItemConvertible
- Direct Known Subclasses:
TallFlowerBlock,TallSeagrassBlock
public class TallPlantBlock extends PlantBlock
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.block.Block
Block.NeighborGroupNested 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 static EnumProperty<DoubleBlockHalf>HALFFields inherited from class net.minecraft.block.Block
LOGGER, STATE_IDS, stateManagerFields inherited from class net.minecraft.block.AbstractBlock
collidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier -
Constructor Summary
Constructors Constructor Description TallPlantBlock(AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description voidafterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack stack)protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos)AbstractBlock.OffsetTypegetOffsetType()BlockStategetPlacementState(ItemPlacementContext ctx)longgetRenderingSeed(BlockState state, BlockPos pos)BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)voidonBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)protected static voidonBreakInCreative(World world, BlockPos pos, BlockState state, PlayerEntity player)Destroys a bottom half of a tall double block (such as a plant or a door) without dropping an item when broken in creative.voidonPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)voidplaceAt(WorldAccess world, BlockPos pos, int flags)Methods inherited from class net.minecraft.block.PlantBlock
canPathfindThrough, canPlantOnTop, isTranslucentMethods inherited from class net.minecraft.block.Block
addStacksForDisplay, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasRandomTicks, hasTopRim, isFaceFullSquare, isShapeFullCube, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
-
Field Details
-
HALF
-
-
Constructor Details
-
TallPlantBlock
-
-
Method Details
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)- Overrides:
getStateForNeighborUpdatein classPlantBlock
-
getPlacementState
- Overrides:
getPlacementStatein classBlock
-
onPlaced
public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack) -
canPlaceAt
- Overrides:
canPlaceAtin classPlantBlock
-
placeAt
-
onBreak
-
afterBreak
public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, ItemStack stack)- Overrides:
afterBreakin classBlock
-
onBreakInCreative
protected static void onBreakInCreative(World world, BlockPos pos, BlockState state, PlayerEntity player)Destroys a bottom half of a tall double block (such as a plant or a door) without dropping an item when broken in creative. -
appendProperties
- Overrides:
appendPropertiesin classBlock
-
getOffsetType
- Overrides:
getOffsetTypein classAbstractBlock
-
getRenderingSeed
- Overrides:
getRenderingSeedin classAbstractBlock
-