Package me.c7dev.dexterity.interaction
Class DexClickDetector
java.lang.Object
me.c7dev.dexterity.interaction.DexClickDetector
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLookingAt(org.bukkit.entity.Player p) Get the data about the block display that an online player is currently looking atgetLookingAt(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 entitiesvoidsetEntityDetectionRadius(double radius)
-
Constructor Details
-
DexClickDetector
-
-
Method Details
-
setEntityDetectionRadius
public void setEntityDetectionRadius(double radius) -
getLookingAt
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 vectoreyeLoc- Location of player's eyenearbyEntities- List of all entities to search through- Returns:
-