public class PlayerMixin
extends java.lang.Object
Constructor and Description |
---|
PlayerMixin() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDoAction(org.bukkit.entity.Player player,
org.bukkit.block.Block block,
LandAction action,
boolean justCheck)
Check if a player can do an action at a block.
|
static boolean |
canDoAction(org.bukkit.entity.Player player,
org.bukkit.entity.Entity entity,
LandAction action,
boolean justCheck)
Check if a player can do an action at a entities location.
|
static boolean |
canDoAction(org.bukkit.entity.Player player,
org.bukkit.Location location,
LandAction action,
boolean justCheck)
Check if a player can do an action at a location.
|
static org.bukkit.inventory.ItemStack |
getItemInMainHand(org.bukkit.entity.Player player)
Get item in the main hand of a player
|
static org.bukkit.inventory.ItemStack |
getItemInOffHand(org.bukkit.entity.Player player)
Get item in the off hand of a player
|
public static org.bukkit.inventory.ItemStack getItemInMainHand(org.bukkit.entity.Player player)
player
- public static org.bukkit.inventory.ItemStack getItemInOffHand(org.bukkit.entity.Player player)
player
- public static boolean canDoAction(org.bukkit.entity.Player player, org.bukkit.block.Block block, LandAction action, boolean justCheck)
player
- Player to checkblock
- Location to checkaction
- Action they are doingjustCheck
- Set to true to not send messages and not give pain on painbuild.public static boolean canDoAction(org.bukkit.entity.Player player, org.bukkit.entity.Entity entity, LandAction action, boolean justCheck)
player
- Player to checkentity
- Location to checkaction
- Action they are doingjustCheck
- Set to true to not send messages and not give pain on painbuild.public static boolean canDoAction(org.bukkit.entity.Player player, org.bukkit.Location location, LandAction action, boolean justCheck)
player
- Player to checklocation
- Location to checkaction
- Action they are doingjustCheck
- Set to true to not send messages and not give pain on painbuild.