Interface BonemealableBlock
- All Known Implementing Classes:
AzaleaBlock, BambooSaplingBlock, BambooStalkBlock, BeetrootBlock, BigDripleafBlock, BigDripleafStemBlock, BonemealableFeaturePlacerBlock, BushBlock, CarrotBlock, CaveVinesBlock, CaveVinesPlantBlock, CocoaBlock, CropBlock, FireflyBushBlock, FlowerBedBlock, GlowLichenBlock, GrassBlock, GrowingPlantBodyBlock, GrowingPlantHeadBlock, HangingMossBlock, KelpBlock, KelpPlantBlock, MangroveLeavesBlock, MangrovePropaguleBlock, MossyCarpetBlock, MushroomBlock, NetherFungusBlock, NetherrackBlock, NyliumBlock, PitcherCropBlock, PotatoBlock, RootedDirtBlock, SaplingBlock, SeagrassBlock, SeaPickleBlock, ShortDryGrassBlock, SmallDripleafBlock, StemBlock, SweetBerryBushBlock, TallDryGrassBlock, TallFlowerBlock, TallGrassBlock, TorchflowerCropBlock, TwistingVinesBlock, TwistingVinesPlantBlock, WeepingVinesBlock, WeepingVinesPlantBlock
public interface BonemealableBlock
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfindSpreadableNeighbourPos(Level level, BlockPos pos, BlockState blockToPlace) default BlockPosgetParticlePos(BlockPos blockPos) getSpreadableNeighbourPos(List<Direction> directions, LevelReader level, BlockPos pos, BlockState blockToPlace) default BonemealableBlock.TypegetType()static booleanhasSpreadableNeighbourPos(LevelReader level, BlockPos pos, BlockState blockToPlace) booleanisBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state) booleanisValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state) voidperformBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state)
-
Method Details
-
isValidBonemealTarget
-
isBonemealSuccess
-
performBonemeal
-
hasSpreadableNeighbourPos
-
findSpreadableNeighbourPos
static Optional<BlockPos> findSpreadableNeighbourPos(Level level, BlockPos pos, BlockState blockToPlace) -
getSpreadableNeighbourPos
private static Optional<BlockPos> getSpreadableNeighbourPos(List<Direction> directions, LevelReader level, BlockPos pos, BlockState blockToPlace) -
getParticlePos
-
getType
-