Class TumblestoneBlockEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.blocks.TumblestoneBlockEvent
Direct Known Subclasses:
TumblestoneBlockEvent.PostBlockBroke, TumblestoneBlockEvent.PostBlockDestroy, TumblestoneBlockEvent.PostCooldownEnd, TumblestoneBlockEvent.PostGrow, TumblestoneBlockEvent.PreBlockBroke, TumblestoneBlockEvent.PreBlockDestroy, TumblestoneBlockEvent.PreCooldownEnd, TumblestoneBlockEvent.PreGrow

public class TumblestoneBlockEvent extends net.minecraftforge.eventbus.api.Event
All relevant events for the Tumblestone blocks
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Fires after the block drops the items after broken
    static class 
    Fired after the destroy happens (when the tumblestone block receives damage from a player)
    static class 
    Fires after 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
    static class 
    Fired in the random tick before the tumblestone attempts to increase in age (grow) Cancelling will prevent it from attempting to grow
    static class 
    Fires before the block drops the items after broken Cancelling prevents the drops
    static class 
    Fired before the destroy happens Cancelling will prevent the destroy (when the tumblestone block receives damage from a player)
    static class 
    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
    static class 
    Fired in the random tick before the tumblestone attempts to increase in age (grow) Cancelling will prevent it from attempting to grow

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    TumblestoneBlockEvent(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos)
    Basic constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.BlockPos
    Gets the position of the block
    net.minecraft.world.level.block.state.BlockState
    Gets the state of the block
    net.minecraft.world.level.Level
    Gets the world this occurred in

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TumblestoneBlockEvent

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

    • getWorld

      public net.minecraft.world.level.Level getWorld()
      Gets the world this occurred in
      Returns:
      The world
    • getState

      public net.minecraft.world.level.block.state.BlockState getState()
      Gets the state of the block
      Returns:
      The state of the block
    • getPos

      public net.minecraft.core.BlockPos getPos()
      Gets the position of the block
      Returns:
      The position