Class ClickedBlockDisplay

java.lang.Object
me.c7dev.dexterity.util.ClickedBlockDisplay

public class ClickedBlockDisplay extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClickedBlockDisplay(org.bukkit.entity.BlockDisplay block, org.bukkit.block.BlockFace blockFace, org.bukkit.util.Vector offset, org.bukkit.Location loc, org.bukkit.Location centerLoc, org.bukkit.util.Vector up_dir, org.bukkit.util.Vector east_dir, org.bukkit.util.Vector south_dir, double dist)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.entity.BlockDisplay
     
    org.bukkit.block.BlockFace
     
    org.bukkit.Location
    Retrieves the precise location on the block face that the player clicked
    org.bukkit.Location
    Retrieves the center of the block display entity
    double
    Retrieves the distance from the player's eye location to the block face in units of blocks
    org.bukkit.util.Vector
    Retrieves the entity's relative east direction basis vector
    org.bukkit.util.Vector
    Retrieves a unit vector that is perpendicular to the clicked block face
    org.bukkit.util.Vector
    Retrieves the vector along the plane of the block face from the center of the face to the precise location of the click
    Retrieves a wrapper for the calculated roll offset, if roll is used in the block display's rotation
    org.bukkit.util.Vector
    Retrieves the entity's relative south direction basis vector
    org.bukkit.util.Vector
    Retrieves the entity's relative up direction basis vector
    void
     

    Methods inherited from class java.lang.Object

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

    • ClickedBlockDisplay

      public ClickedBlockDisplay(org.bukkit.entity.BlockDisplay block, org.bukkit.block.BlockFace blockFace, org.bukkit.util.Vector offset, org.bukkit.Location loc, org.bukkit.Location centerLoc, org.bukkit.util.Vector up_dir, org.bukkit.util.Vector east_dir, org.bukkit.util.Vector south_dir, double dist)
  • Method Details

    • setRollOffset

      public void setRollOffset(RollOffset ro)
    • getBlockDisplay

      public org.bukkit.entity.BlockDisplay getBlockDisplay()
    • getBlockFace

      public org.bukkit.block.BlockFace getBlockFace()
    • getOffsetFromFaceCenter

      public org.bukkit.util.Vector getOffsetFromFaceCenter()
      Retrieves the vector along the plane of the block face from the center of the face to the precise location of the click
      Returns:
      Unmodifiable vector
    • getClickLocation

      public org.bukkit.Location getClickLocation()
      Retrieves the precise location on the block face that the player clicked
      Returns:
      Unmodifiable location
    • getDisplayCenterLocation

      public org.bukkit.Location getDisplayCenterLocation()
      Retrieves the center of the block display entity
      Returns:
      Unmodifiable location
    • getNormal

      public org.bukkit.util.Vector getNormal()
      Retrieves a unit vector that is perpendicular to the clicked block face
      Returns:
      Unmodifiable unit vector
    • getUpDir

      public org.bukkit.util.Vector getUpDir()
      Retrieves the entity's relative up direction basis vector
      Returns:
      Unmodifiable unit vector
    • getEastDir

      public org.bukkit.util.Vector getEastDir()
      Retrieves the entity's relative east direction basis vector
      Returns:
      Unmodifiable unit vector
    • getSouthDir

      public org.bukkit.util.Vector getSouthDir()
      Retrieves the entity's relative south direction basis vector
      Returns:
      Unmodifiable unit vector
    • getDistance

      public double getDistance()
      Retrieves the distance from the player's eye location to the block face in units of blocks
      Returns:
    • getRollOffset

      public RollOffset getRollOffset()
      Retrieves a wrapper for the calculated roll offset, if roll is used in the block display's rotation
      Returns: