|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.item.ItemInWorldManager
public class ItemInWorldManager
Field Summary | |
---|---|
World |
theWorld
The world object that this object is connected to. |
EntityPlayerMP |
thisPlayerMP
The EntityPlayerMP object that this object is connected to. |
Constructor Summary | |
---|---|
ItemInWorldManager(World par1World)
|
Method Summary | |
---|---|
boolean |
activateBlockOrUseItem(EntityPlayer par1EntityPlayer,
World par2World,
ItemStack par3ItemStack,
int par4,
int par5,
int par6,
int par7,
float par8,
float par9,
float par10)
Activate the clicked on block, otherwise use the held item. |
void |
cancelDestroyingBlock(int par1,
int par2,
int par3)
note: this ignores the pars passed in and continues to destroy the onClickedBlock |
double |
getBlockReachDistance()
|
EnumGameType |
getGameType()
|
void |
initializeGameType(EnumGameType par1EnumGameType)
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 par1,
int par2,
int par3,
int par4)
if not creative, it calls destroyBlockInWorldPartially untill the block is broken first. |
void |
setBlockReachDistance(double distance)
|
void |
setGameType(EnumGameType par1EnumGameType)
|
void |
setWorld(WorldServer par1WorldServer)
Sets the world instance. |
boolean |
tryHarvestBlock(int par1,
int par2,
int par3)
Attempts to harvest a block at the given coordinate |
boolean |
tryUseItem(EntityPlayer par1EntityPlayer,
World par2World,
ItemStack par3ItemStack)
Attempts to right-click use an item by the given EntityPlayer in the given World |
void |
uncheckedTryHarvestBlock(int par1,
int par2,
int par3)
|
void |
updateBlockRemoving()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public World theWorld
public EntityPlayerMP thisPlayerMP
Constructor Detail |
---|
public ItemInWorldManager(World par1World)
Method Detail |
---|
public void setGameType(EnumGameType par1EnumGameType)
public EnumGameType getGameType()
public boolean isCreative()
public void initializeGameType(EnumGameType par1EnumGameType)
public void updateBlockRemoving()
public void onBlockClicked(int par1, int par2, int par3, int par4)
public void uncheckedTryHarvestBlock(int par1, int par2, int par3)
public void cancelDestroyingBlock(int par1, int par2, int par3)
public boolean tryHarvestBlock(int par1, int par2, int par3)
public boolean tryUseItem(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack)
public boolean activateBlockOrUseItem(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
public void setWorld(WorldServer par1WorldServer)
public double getBlockReachDistance()
public void setBlockReachDistance(double distance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |