Class AttemptBlockSetEvent

java.lang.Object
dev.ultreon.mods.xinexlib.event.block.AttemptBlockSetEvent
All Implemented Interfaces:
BlockEvent, BlockStateEvent, PositionalBlockEvent, LevelEvent, Cancelable

public class AttemptBlockSetEvent extends Object implements PositionalBlockEvent, Cancelable
  • Constructor Details

    • AttemptBlockSetEvent

      public AttemptBlockSetEvent(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int flags)
  • Method Details

    • getLevel

      public net.minecraft.world.level.Level getLevel()
      Specified by:
      getLevel in interface LevelEvent
    • getState

      public net.minecraft.world.level.block.state.BlockState getState()
      Specified by:
      getState in interface BlockStateEvent
    • getOldState

      public net.minecraft.world.level.block.state.BlockState getOldState()
    • getBlockPosition

      public net.minecraft.core.BlockPos getBlockPosition()
      Specified by:
      getBlockPosition in interface PositionalBlockEvent
    • getFlags

      public int getFlags()
    • isCanceled

      public boolean isCanceled()
      Specified by:
      isCanceled in interface Cancelable
    • cancel

      public void cancel()
      Specified by:
      cancel in interface Cancelable
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object