public class PlayerInteractionManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
curblockDamage |
private BlockPos |
delayedDestroyPos |
private BlockPos |
destroyPos |
private int |
durabilityRemainingOnBlock |
private GameType |
gameType |
private int |
initialBlockDamage |
private int |
initialDamage |
private boolean |
isDestroyingBlock |
EntityPlayerMP |
player |
private boolean |
receivedFinishDiggingPacket |
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) |
private boolean |
removeBlock(BlockPos pos) |
private boolean |
removeBlock(BlockPos pos,
boolean canHarvest) |
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
private GameType gameType
private boolean isDestroyingBlock
private int initialDamage
private BlockPos destroyPos
private int curblockDamage
private boolean receivedFinishDiggingPacket
private BlockPos delayedDestroyPos
private int initialBlockDamage
private int durabilityRemainingOnBlock
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()
private boolean removeBlock(BlockPos pos)
private boolean removeBlock(BlockPos pos, boolean canHarvest)
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)