public class ItemInWorldManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
World |
theWorld
The world object that this object is connected to.
|
EntityPlayerMP |
thisPlayerMP
The EntityPlayerMP object that this object is connected to.
|
| Constructor and Description |
|---|
ItemInWorldManager(World p_i1524_1_) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
activateBlockOrUseItem(EntityPlayer p_73078_1_,
World p_73078_2_,
ItemStack p_73078_3_,
int p_73078_4_,
int p_73078_5_,
int p_73078_6_,
int p_73078_7_,
float p_73078_8_,
float p_73078_9_,
float p_73078_10_)
Activate the clicked on block, otherwise use the held item.
|
void |
cancelDestroyingBlock(int p_73073_1_,
int p_73073_2_,
int p_73073_3_)
note: this ignores the pars passed in and continues to destroy the onClickedBlock
|
double |
getBlockReachDistance() |
WorldSettings.GameType |
getGameType() |
void |
initializeGameType(WorldSettings.GameType p_73077_1_)
if the gameType is currently NOT_SET then change it to par1
|
boolean |
isCreative()
Get if we are in creative game mode.
|
void |
onBlockClicked(int p_73074_1_,
int p_73074_2_,
int p_73074_3_,
int p_73074_4_)
if not creative, it calls destroyBlockInWorldPartially untill the block is broken first. par4 is the specific
side. tryHarvestBlock can also be the result of this call
|
void |
setBlockReachDistance(double distance) |
void |
setGameType(WorldSettings.GameType p_73076_1_) |
void |
setWorld(WorldServer p_73080_1_)
Sets the world instance.
|
boolean |
tryHarvestBlock(int p_73084_1_,
int p_73084_2_,
int p_73084_3_)
Attempts to harvest a block at the given coordinate
|
boolean |
tryUseItem(EntityPlayer p_73085_1_,
World p_73085_2_,
ItemStack p_73085_3_)
Attempts to right-click use an item by the given EntityPlayer in the given World
|
void |
uncheckedTryHarvestBlock(int p_73082_1_,
int p_73082_2_,
int p_73082_3_) |
void |
updateBlockRemoving() |
public World theWorld
public EntityPlayerMP thisPlayerMP
public ItemInWorldManager(World p_i1524_1_)
public void setGameType(WorldSettings.GameType p_73076_1_)
public WorldSettings.GameType getGameType()
public boolean isCreative()
public void initializeGameType(WorldSettings.GameType p_73077_1_)
public void updateBlockRemoving()
public void onBlockClicked(int p_73074_1_,
int p_73074_2_,
int p_73074_3_,
int p_73074_4_)
public void uncheckedTryHarvestBlock(int p_73082_1_,
int p_73082_2_,
int p_73082_3_)
public void cancelDestroyingBlock(int p_73073_1_,
int p_73073_2_,
int p_73073_3_)
public boolean tryHarvestBlock(int p_73084_1_,
int p_73084_2_,
int p_73084_3_)
public boolean tryUseItem(EntityPlayer p_73085_1_, World p_73085_2_, ItemStack p_73085_3_)
public boolean activateBlockOrUseItem(EntityPlayer p_73078_1_, World p_73078_2_, ItemStack p_73078_3_, int p_73078_4_, int p_73078_5_, int p_73078_6_, int p_73078_7_, float p_73078_8_, float p_73078_9_, float p_73078_10_)
public void setWorld(WorldServer p_73080_1_)
public double getBlockReachDistance()
public void setBlockReachDistance(double distance)