Class TargetBlockInfo

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

@Deprecated(forRemoval=true, since="1.19.3") public class TargetBlockInfo extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
Represents information about a targeted block.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TargetBlockInfo(Block block, BlockFace blockFace)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the block that is targeted.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the targeted BlockFace.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the relative Block to the targeted block on the side it is targeted at.

    Methods inherited from class Object

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

    • TargetBlockInfo

      public TargetBlockInfo(Block block, BlockFace blockFace)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getBlock

      public Block getBlock()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the block that is targeted.
      Returns:
      Targeted block
    • getBlockFace

      public BlockFace getBlockFace()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the targeted BlockFace.
      Returns:
      Targeted blockface
    • getRelativeBlock

      public Block getRelativeBlock()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Get the relative Block to the targeted block on the side it is targeted at.
      Returns:
      Block relative to targeted block