mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-01 13:11:30 +01:00
Added LivingEntity.getEyeLocation() for getting the eyes location.
By: Andrew Ardill <andrew.ardill@gmail.com>
This commit is contained in:
parent
97f4798d51
commit
b5b33a5f28
@ -3,6 +3,8 @@ package org.bukkit.entity;
|
|||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.bukkit.Location;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -38,6 +40,13 @@ public interface LivingEntity extends Entity {
|
|||||||
*/
|
*/
|
||||||
public double getEyeHeight(boolean ignoreSneaking);
|
public double getEyeHeight(boolean ignoreSneaking);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get a Location detailing the current eye position of the LivingEntity.
|
||||||
|
*
|
||||||
|
* @return a Location at the eyes of the LivingEntity.
|
||||||
|
*/
|
||||||
|
public Location getEyeLocation();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets all blocks along the player's line of sight
|
* Gets all blocks along the player's line of sight
|
||||||
* List iterates from player's position to target inclusive
|
* List iterates from player's position to target inclusive
|
||||||
|
Loading…
Reference in New Issue
Block a user