YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.item.ItemInWorldManager Class Reference
Inheritance diagram for net.minecraft.item.ItemInWorldManager:
net.minecraft.world.demo.DemoWorldManager

Public Member Functions

 ItemInWorldManager (World par1World)
 
void setGameType (EnumGameType par1EnumGameType)
 
EnumGameType getGameType ()
 
boolean isCreative ()
 
void initializeGameType (EnumGameType par1EnumGameType)
 
void updateBlockRemoving ()
 
void onBlockClicked (int par1, int par2, int par3, int par4)
 
void uncheckedTryHarvestBlock (int par1, int par2, int par3)
 
void cancelDestroyingBlock (int par1, int par2, int par3)
 
boolean tryHarvestBlock (int par1, int par2, int par3)
 
boolean tryUseItem (EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack)
 
boolean activateBlockOrUseItem (EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
 
void setWorld (WorldServer par1WorldServer)
 
double getBlockReachDistance ()
 
void setBlockReachDistance (double distance)
 

Public Attributes

World theWorld
 
EntityPlayerMP thisPlayerMP
 

Constructor & Destructor Documentation

net.minecraft.item.ItemInWorldManager.ItemInWorldManager ( World  par1World)

Member Function Documentation

boolean net.minecraft.item.ItemInWorldManager.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. Args: player, world, itemStack, x, y, z, side, xOffset, yOffset, zOffset

void net.minecraft.item.ItemInWorldManager.cancelDestroyingBlock ( int  par1,
int  par2,
int  par3 
)

note: this ignores the pars passed in and continues to destroy the onClickedBlock

double net.minecraft.item.ItemInWorldManager.getBlockReachDistance ( )
EnumGameType net.minecraft.item.ItemInWorldManager.getGameType ( )
void net.minecraft.item.ItemInWorldManager.initializeGameType ( EnumGameType  par1EnumGameType)

if the gameType is currently NOT_SET then change it to par1

boolean net.minecraft.item.ItemInWorldManager.isCreative ( )

Get if we are in creative game mode.

void net.minecraft.item.ItemInWorldManager.onBlockClicked ( int  par1,
int  par2,
int  par3,
int  par4 
)

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 net.minecraft.item.ItemInWorldManager.setBlockReachDistance ( double  distance)
void net.minecraft.item.ItemInWorldManager.setGameType ( EnumGameType  par1EnumGameType)
void net.minecraft.item.ItemInWorldManager.setWorld ( WorldServer  par1WorldServer)

Sets the world instance.

boolean net.minecraft.item.ItemInWorldManager.tryHarvestBlock ( int  par1,
int  par2,
int  par3 
)

Attempts to harvest a block at the given coordinate

boolean net.minecraft.item.ItemInWorldManager.tryUseItem ( EntityPlayer  par1EntityPlayer,
World  par2World,
ItemStack  par3ItemStack 
)

Attempts to right-click use an item by the given EntityPlayer in the given World

void net.minecraft.item.ItemInWorldManager.uncheckedTryHarvestBlock ( int  par1,
int  par2,
int  par3 
)
void net.minecraft.item.ItemInWorldManager.updateBlockRemoving ( )

Member Data Documentation

World net.minecraft.item.ItemInWorldManager.theWorld

The world object that this object is connected to.

EntityPlayerMP net.minecraft.item.ItemInWorldManager.thisPlayerMP

The EntityPlayerMP object that this object is connected to.


The documentation for this class was generated from the following file: