Class TargetBlockInfo

java.lang.Object
com.destroystokyo.paper.block.TargetBlockInfo

public class TargetBlockInfo extends Object
Represents information about a targeted block
  • Constructor Details

  • Method Details

    • getBlock

      @NotNull public @NotNull Block getBlock()
      Get the block that is targeted
      Returns:
      Targeted block
    • getBlockFace

      @NotNull public @NotNull BlockFace getBlockFace()
      Get the targeted BlockFace
      Returns:
      Targeted blockface
    • getRelativeBlock

      @NotNull public @NotNull Block getRelativeBlock()
      Get the relative Block to the targeted block on the side it is targeted at
      Returns:
      Block relative to targeted block