public class PlayerInteractionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
EntityPlayerMP |
player |
World |
world |
Constructor and Description |
---|
PlayerInteractionManager(World worldIn) |
Modifier and Type | Method and Description |
---|---|
void |
abortDestroyBlock() |
GameType |
getGameType() |
void |
initializeGameType(GameType type) |
boolean |
isCreative() |
EnumActionResult |
processRightClick(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand) |
EnumActionResult |
processRightClickBlock(EntityPlayer player,
World worldIn,
ItemStack stack,
EnumHand hand,
BlockPos pos,
EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
void |
setGameType(GameType type) |
void |
setWorld(WorldServer serverWorld) |
void |
startDestroyBlock(BlockPos pos,
EnumFacing side) |
void |
stopDestroyBlock(BlockPos pos) |
boolean |
survivalOrAdventure() |
void |
tick() |
boolean |
tryHarvestBlock(BlockPos pos) |
public World world
public EntityPlayerMP player
public PlayerInteractionManager(World worldIn)
public void setGameType(GameType type)
public GameType getGameType()
public boolean survivalOrAdventure()
public boolean isCreative()
public void initializeGameType(GameType type)
public void tick()
public void startDestroyBlock(BlockPos pos, EnumFacing side)
public void stopDestroyBlock(BlockPos pos)
public void abortDestroyBlock()
public boolean tryHarvestBlock(BlockPos pos)
public EnumActionResult processRightClick(EntityPlayer player, World worldIn, ItemStack stack, EnumHand hand)
public EnumActionResult processRightClickBlock(EntityPlayer player, World worldIn, ItemStack stack, EnumHand hand, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ)
public void setWorld(WorldServer serverWorld)