public class ChorusFlowerBlock extends Block
Block.NeighborGroupAbstractBlock.AbstractBlockState, AbstractBlock.ContextPredicate, AbstractBlock.OffsetType, AbstractBlock.Settings, AbstractBlock.TypedContextPredicate<A>| Modifier and Type | Field and Description |
|---|---|
static IntProperty |
AGE |
private ChorusPlantBlock |
plantBlock |
LOGGER, STATE_IDS, stateManagercollidable, dynamicBounds, FACINGS, jumpVelocityMultiplier, lootTableId, material, randomTicks, resistance, settings, slipperiness, soundGroup, velocityMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
ChorusFlowerBlock(ChorusPlantBlock plantBlock,
AbstractBlock.Settings settings) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendProperties(StateManager.Builder<Block,BlockState> builder) |
boolean |
canPlaceAt(BlockState state,
WorldView world,
BlockPos pos) |
private void |
die(World world,
BlockPos pos) |
private static void |
generate(IWorld world,
BlockPos pos,
Random random,
BlockPos rootPos,
int size,
int layer) |
static void |
generate(IWorld world,
BlockPos pos,
Random random,
int size) |
BlockState |
getStateForNeighborUpdate(BlockState state,
Direction direction,
BlockState newState,
IWorld world,
BlockPos pos,
BlockPos posFrom) |
private void |
grow(World world,
BlockPos pos,
int age) |
boolean |
hasRandomTicks(BlockState state) |
private static boolean |
isSurroundedByAir(WorldView worldView,
BlockPos pos,
Direction exceptDirection) |
void |
onProjectileHit(World world,
BlockState state,
BlockHitResult hit,
ProjectileEntity projectile) |
void |
randomTick(BlockState state,
ServerWorld world,
BlockPos pos,
Random random) |
void |
scheduledTick(BlockState state,
ServerWorld world,
BlockPos pos,
Random random) |
addStacksForDisplay, afterBreak, asBlock, asItem, buildTooltip, 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, isIn, isShapeFullCube, isSideSolidFullSquare, isTranslucent, onBreak, onBroken, onDestroyedByExplosion, onEntityLand, onLandedUpon, onPlaced, onSteppedOn, postProcessState, pushEntitiesUpBeforeBlockChange, rainTick, randomDisplayTick, replaceBlock, setDefaultState, shouldDrawSide, shouldDropItemsOnExplosion, sideCoversSmallSquare, toStringcalcBlockBreakingDelta, canBucketPlace, canPathfindThrough, canReplace, createScreenHandlerFactory, emitsRedstonePower, getAmbientOcclusionLightLevel, getCollisionShape, getComparatorOutput, getCullingShape, getDefaultMaterialColor, getDroppedStacks, getFluidState, getLootTableId, getOffsetType, getOpacity, getOutlineShape, getPistonBehavior, getRayTraceShape, getRenderingSeed, getRenderType, getSidesShape, getStrongRedstonePower, getVisualShape, getWeakRedstonePower, hasBlockEntity, hasComparatorOutput, hasSidedTransparency, isSideInvisible, mirror, neighborUpdate, onBlockAction, onBlockAdded, onBlockBreakStart, onBlockRemoved, onEntityCollision, onStacksDropped, onUse, prepare, rotatepublic static final IntProperty AGE
private final ChorusPlantBlock plantBlock
protected ChorusFlowerBlock(ChorusPlantBlock plantBlock, AbstractBlock.Settings settings)
public void scheduledTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
scheduledTick in class AbstractBlockpublic boolean hasRandomTicks(BlockState state)
hasRandomTicks in class Blockpublic void randomTick(BlockState state, ServerWorld world, BlockPos pos, Random random)
randomTick in class AbstractBlockprivate static boolean isSurroundedByAir(WorldView worldView, BlockPos pos, @Nullable Direction exceptDirection)
public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState newState, IWorld world, BlockPos pos, BlockPos posFrom)
getStateForNeighborUpdate in class AbstractBlockpublic boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
canPlaceAt in class AbstractBlockprotected void appendProperties(StateManager.Builder<Block,BlockState> builder)
appendProperties in class Blockprivate static void generate(IWorld world, BlockPos pos, Random random, BlockPos rootPos, int size, int layer)
public void onProjectileHit(World world, BlockState state, BlockHitResult hit, ProjectileEntity projectile)
onProjectileHit in class AbstractBlock