public interface IBlockGrowable
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGrowWithChance(GlowBlock block)
Called to check if the block will effectively grow.
|
void |
grow(GlowPlayer player,
GlowBlock block)
Called to grow a growable block.
|
boolean |
isFertilizable(GlowBlock block)
Called to check if a block can be fertilized.
|
boolean isFertilizable(GlowBlock block)
block - the targeted block to fertilizeboolean canGrowWithChance(GlowBlock block)
block - the targeted block to growvoid grow(GlowPlayer player, GlowBlock block)
player - the player who triggered the growth, this can be null if the growth is natural
or by plugin sourceblock - the targeted block to growCopyright © 2021. All rights reserved.