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.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.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)protected static voidmethod_30036(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity)voidonBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)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, asBlock, asItem, buildTooltip, 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, is, isFaceFullSquare, isIn, isShapeFullCube, isSideSolidFullSquare, method_30094, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, 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, getOpacity, getOutlineShape, getPistonBehavior, getRayTraceShape, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onProjectileHit, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, randomTick, rotate, scheduledTick
-
Field Details
-
Constructor Details
-
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
-
method_30036
protected static void method_30036(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity) -
appendProperties
- Overrides:
appendPropertiesin classBlock
-
getOffsetType
- Overrides:
getOffsetTypein classAbstractBlock
-
getRenderingSeed
- Overrides:
getRenderingSeedin classAbstractBlock
-