Class PlayerPlaceBlockEvent

java.lang.Object
dev.ultreon.mods.xinexlib.event.player.PlayerPlaceBlockEvent
All Implemented Interfaces:
BlockEvent, BlockStateEvent, PositionalBlockEvent, EntityEvent, PositionEvent, LevelEvent, PlayerEvent, Cancelable

public final class PlayerPlaceBlockEvent extends Object implements PlayerEvent, PositionalBlockEvent, Cancelable
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerPlaceBlockEvent(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction placedAgainst, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player entity, net.minecraft.world.item.context.BlockPlaceContext context)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     
    net.minecraft.core.BlockPos
     
    net.minecraft.world.item.context.BlockPlaceContext
     
    net.minecraft.world.level.Level
     
    net.minecraft.core.Direction
     
    net.minecraft.world.entity.player.Player
     
    net.minecraft.world.level.block.state.BlockState
     
    int
     
    boolean
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface dev.ultreon.mods.xinexlib.event.block.BlockStateEvent

    getBlock

    Methods inherited from interface dev.ultreon.mods.xinexlib.event.entity.EntityEvent

    getPosition

    Methods inherited from interface dev.ultreon.mods.xinexlib.event.player.PlayerEvent

    getEntity
  • Constructor Details

    • PlayerPlaceBlockEvent

      public PlayerPlaceBlockEvent(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.Direction placedAgainst, net.minecraft.core.BlockPos pos, net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player entity, net.minecraft.world.item.context.BlockPlaceContext context)
  • Method Details

    • getState

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

      public net.minecraft.core.Direction getPlacedAgainst()
    • getBlockPosition

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

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

      public net.minecraft.world.entity.player.Player getPlayer()
      Specified by:
      getPlayer in interface PlayerEvent
    • getContext

      public net.minecraft.world.item.context.BlockPlaceContext getContext()
    • 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 obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object