Class ClickedBlockDisplay
java.lang.Object
me.c7dev.dexterity.util.ClickedBlockDisplay
-
Constructor Summary
ConstructorsConstructorDescriptionClickedBlockDisplay
(BlockDisplay block, BlockFace blockFace, Vector offset, Location loc, Location centerLoc, Vector up_dir, Vector east_dir, Vector south_dir, double dist) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the precise location on the block face that the player clickedRetrieves the center of the block display entitydouble
Retrieves the distance from the player's eye location to the block face in units of blocksRetrieves the entity's relative east direction basis vectorRetrieves a unit vector that is perpendicular to the clicked block faceRetrieves the vector along the plane of the block face from the center of the face to the precise location of the clickRetrieves a wrapper for the calculated roll offset, if roll is used in the block display's rotationRetrieves the entity's relative south direction basis vectorgetUpDir()
Retrieves the entity's relative up direction basis vectorvoid
-
Constructor Details
-
ClickedBlockDisplay
-
-
Method Details
-
setRollOffset
-
getBlockDisplay
-
getBlockFace
-
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
Retrieves the precise location on the block face that the player clicked- Returns:
- Unmodifiable location
-
getDisplayCenterLocation
Retrieves the center of the block display entity- Returns:
- Unmodifiable location
-
getNormal
Retrieves a unit vector that is perpendicular to the clicked block face- Returns:
- Unmodifiable unit vector
-
getUpDir
Retrieves the entity's relative up direction basis vector- Returns:
- Unmodifiable unit vector
-
getEastDir
Retrieves the entity's relative east direction basis vector- Returns:
- Unmodifiable unit 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
Retrieves a wrapper for the calculated roll offset, if roll is used in the block display's rotation- Returns:
-