Package net.minecraft.world.level.block
Interface BonemealableBlock
- All Known Implementing Classes:
AzaleaBlock,BambooSaplingBlock,BambooStalkBlock,BeetrootBlock,BigDripleafBlock,BigDripleafStemBlock,BonemealableFeaturePlacerBlock,BushBlock,CarrotBlock,CaveVinesBlock,CaveVinesPlantBlock,CocoaBlock,CropBlock,FireflyBushBlock,FlowerBedBlock,FungusBlock,GlowLichenBlock,GrassBlock,GrowingPlantBodyBlock,GrowingPlantHeadBlock,HangingMossBlock,KelpBlock,KelpPlantBlock,MangroveLeavesBlock,MangrovePropaguleBlock,MossyCarpetBlock,MushroomBlock,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 state) default BlockPosgetParticlePos(BlockPos pos) getSpreadableNeighbourPos(List<Direction> directions, LevelReader level, BlockPos pos, BlockState state) default BonemealableBlock.TypegetType()static booleanhasSpreadableNeighbourPos(LevelReader level, BlockPos pos, BlockState state) 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
-
getSpreadableNeighbourPos
private static Optional<BlockPos> getSpreadableNeighbourPos(List<Direction> directions, LevelReader level, BlockPos pos, BlockState state) -
getParticlePos
-
getType
-