Class TumblestoneBlockEvent.PreCooldownEnd

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

public static class TumblestoneBlockEvent.PreCooldownEnd extends TumblestoneBlockEvent
Fires before the block takes a chance at returning to the "base" state after being broken and dropping items Cancelling prevents the block from returning to the base state
  • Constructor Details

    • PreCooldownEnd

      public PreCooldownEnd(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, float chance)
  • Method Details

    • getChance

      public float getChance()
      Chance of it returning to the base state
      Returns:
      The chance of it returning to base state default to the config value
    • setChance

      public void setChance(float chance)
      Updates the chance to a new value
      Parameters:
      chance - The new chance