Class TumblestoneBlockEvent.PostGrow

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent.PostGrow
Enclosing class:
TumblestoneBlockEvent

public static class TumblestoneBlockEvent.PostGrow extends TumblestoneBlockEvent
Fired in the random tick before the tumblestone attempts to increase in age (grow) Cancelling will prevent it from attempting to grow
  • Constructor Details

    • PostGrow

      public PostGrow(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, float chance)
      Basic constructor
      Parameters:
      state - The block state
      pos - The position of the tumblestone
      chance - The chance of growth
  • Method Details

    • getChance

      public float getChance()
      The change of the growth happening this random tick
      Returns:
      The chance
    • isFullyGrown

      public boolean isFullyGrown()
      Checks if the block grew to full value
      Returns:
      The fully grown status