public class PlayerInteractionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
World |
theWorld |
EntityPlayerMP |
thisPlayerMP |
Constructor and Description |
---|
PlayerInteractionManager(World worldIn) |
Modifier and Type | Method and Description |
---|---|
void |
blockRemoving(BlockPos pos) |
void |
cancelDestroyingBlock() |
double |
getBlockReachDistance() |
WorldSettings.GameType |
getGameType() |
void |
initializeGameType(WorldSettings.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) |
void |
setGameType(WorldSettings.GameType type) |
void |
setWorld(WorldServer serverWorld) |
boolean |
survivalOrAdventure() |
boolean |
tryHarvestBlock(BlockPos pos) |
void |
updateBlockRemoving() |
public World theWorld
public EntityPlayerMP thisPlayerMP
public PlayerInteractionManager(World worldIn)
public void setGameType(WorldSettings.GameType type)
public WorldSettings.GameType getGameType()
public boolean survivalOrAdventure()
public boolean isCreative()
public void initializeGameType(WorldSettings.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, @Nullable ItemStack stack, EnumHand hand, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ)
public void setWorld(WorldServer serverWorld)
public double getBlockReachDistance()
public void setBlockReachDistance(double distance)