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 |
blockRemoving(BlockPos pos) |
void |
cancelDestroyingBlock() |
double |
getBlockReachDistance()
Deprecated.
|
GameType |
getGameType() |
void |
initializeGameType(GameType type) |
boolean |
isCreative() |
void |
onBlockClicked(BlockPos pos,
EnumFacing side) |
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 |
setBlockReachDistance(double distance)
Deprecated.
|
void |
setGameType(GameType type) |
void |
setWorld(WorldServer serverWorld) |
boolean |
survivalOrAdventure() |
boolean |
tryHarvestBlock(BlockPos pos) |
void |
updateBlockRemoving() |
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 updateBlockRemoving()
public void onBlockClicked(BlockPos pos, EnumFacing side)
public void blockRemoving(BlockPos pos)
public void cancelDestroyingBlock()
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)
@Deprecated public double getBlockReachDistance()
@Deprecated public void setBlockReachDistance(double distance)