Package net.minecraft.block
Class ChorusFlowerBlock
java.lang.Object
net.minecraft.block.AbstractBlock
net.minecraft.block.Block
net.minecraft.block.ChorusFlowerBlock
- All Implemented Interfaces:
ItemConvertible
public class ChorusFlowerBlock extends Block
-
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 IntPropertyAGEprivate ChorusPlantBlockplantBlockFields 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 Modifier Constructor Description protectedChorusFlowerBlock(ChorusPlantBlock plantBlock, AbstractBlock.Settings settings) -
Method Summary
Modifier and Type Method Description protected voidappendProperties(StateManager.Builder<Block,BlockState> builder)booleancanPlaceAt(BlockState state, WorldView world, BlockPos pos)private voiddie(World world, BlockPos pos)static voidgenerate(WorldAccess world, BlockPos pos, Random random, int size)private static voidgenerate(WorldAccess world, BlockPos pos, Random random, BlockPos rootPos, int size, int layer)BlockStategetStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)private voidgrow(World world, BlockPos pos, int age)booleanhasRandomTicks(BlockState state)private static booleanisSurroundedByAir(WorldView world, BlockPos pos, Direction exceptDirection)voidonProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)voidrandomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)voidscheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)Methods inherited from class net.minecraft.block.Block
addStacksForDisplay, afterBreak, appendTooltip, asBlock, asItem, canMobSpawnInside, cannotConnect, createCuboidShape, dropExperience, dropStack, dropStacks, dropStacks, dropStacks, getBlastResistance, getBlockFromItem, getDefaultState, getDroppedStacks, getDroppedStacks, getJumpVelocityMultiplier, getName, getPickStack, getPlacementState, getRawIdFromState, getSlipperiness, getSoundGroup, getStateFromRawId, getStateManager, getTranslationKey, getVelocityMultiplier, hasDynamicBounds, hasTopRim, isFaceFullSquare, isShapeFullCube, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, precipitationTick, pushEntitiesUpBeforeBlockChange, randomDisplayTick, replace, replace, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringMethods inherited from class net.minecraft.block.AbstractBlock
calcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMapColor, getDroppedStacks, getFluidState, getLootTableId, getMaxModelOffset, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRaycastShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAdded, onBlockBreakStart, onEntityCollision, onStacksDropped, onStateReplaced, onSyncedBlockEvent, onUse, prepare, rotate
-
Field Details
-
AGE
-
plantBlock
-
-
Constructor Details
-
ChorusFlowerBlock
-
-
Method Details
-
scheduledTick
- Overrides:
scheduledTickin classAbstractBlock
-
hasRandomTicks
- Overrides:
hasRandomTicksin classBlock
-
randomTick
- Overrides:
randomTickin classAbstractBlock
-
grow
-
die
-
isSurroundedByAir
-
getStateForNeighborUpdate
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, WorldAccess world, BlockPos pos, BlockPos posFrom)- Overrides:
getStateForNeighborUpdatein classAbstractBlock
-
canPlaceAt
- Overrides:
canPlaceAtin classAbstractBlock
-
appendProperties
- Overrides:
appendPropertiesin classBlock
-
generate
-
generate
private static void generate(WorldAccess world, BlockPos pos, Random random, BlockPos rootPos, int size, int layer) -
onProjectileHit
public void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)- Overrides:
onProjectileHitin classAbstractBlock
-