Class DexClickDetector

java.lang.Object
me.c7dev.dexterity.interaction.DexClickDetector

public class DexClickDetector extends Object
  • Constructor Details

  • Method Details

    • setEntityDetectionRadius

      public void setEntityDetectionRadius(double radius)
    • getLookingAt

      public ClickedBlockDisplay getLookingAt(org.bukkit.entity.Player p)
      Get the data about the block display that an online player is currently looking at
      Parameters:
      p -
      Returns:
    • getLookingAt

      public ClickedBlockDisplay getLookingAt(org.bukkit.util.Vector dir, org.bukkit.Location eyeLoc, List<org.bukkit.entity.Entity> nearbyEntities)
      Get the data about a block display that a direction vector points to given the camera's location vector and nearby entities
      Parameters:
      dir - Unit direction vector
      eyeLoc - Location of player's eye
      nearbyEntities - List of all entities to search through
      Returns: