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(@NotNull Block block, @NotNull BlockFace blockFace)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Block
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the block that is targeted
    @NotNull BlockFace
    Deprecated, for removal: This API element is subject to removal in a future version.
    Get the targeted BlockFace
    @NotNull Block
    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 java.lang.Object

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

    • TargetBlockInfo

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

    • getBlock

      @NotNull public @NotNull 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

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

      @NotNull public @NotNull 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