SkyLib
1.1.1
SkyLib
/
de.skyslycer.skylib.util
/
PlayerUtil
Player
Util
public
class
PlayerUtil
Utility class for players.
Functions
Functions
get
Look
Block
Link copied to clipboard
public
static
Location
getLookBlock
(
Player
player
)
Get the block a player is looking at.
get
Opposite
Link copied to clipboard
public
static
Location
getOpposite
(
Player
player
)
Get the block location on the opposite side of the player
give
Link copied to clipboard
public
static
void
give
(
Player
player
,
ItemStack
item
)
Give a player an item and drop what doesn't fit.