Package net.minecraft.src
Class DemoWorldManager
java.lang.Object
net.minecraft.src.ItemInWorldManager
net.minecraft.src.DemoWorldManager
-
Field Summary
Fields inherited from class net.minecraft.src.ItemInWorldManager
theWorld, thisPlayerMP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanactivateBlockOrUseItem(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.voidonBlockClicked(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 callbooleantryHarvestBlock(int par1, int par2, int par3) Attempts to harvest a block at the given coordinatebooleantryUseItem(EntityPlayer par1EntityPlayer, World par2World, ItemStack par3ItemStack) Attempts to right-click use an item by the given EntityPlayer in the given WorldvoiduncheckedTryHarvestBlock(int par1, int par2, int par3) voidMethods inherited from class net.minecraft.src.ItemInWorldManager
cancelDestroyingBlock, getGameType, initializeGameType, isCreative, setGameType, setWorld, survivalTryHarvestBlock, tryHarvestBlock, uncheckedTryHarvestBlock
-
Constructor Details
-
DemoWorldManager
-
-
Method Details
-
updateBlockRemoving
public void updateBlockRemoving()- Overrides:
updateBlockRemovingin classItemInWorldManager
-
onBlockClicked
public void 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- Overrides:
onBlockClickedin classItemInWorldManager
-
uncheckedTryHarvestBlock
public void uncheckedTryHarvestBlock(int par1, int par2, int par3) - Overrides:
uncheckedTryHarvestBlockin classItemInWorldManager
-
tryHarvestBlock
public boolean tryHarvestBlock(int par1, int par2, int par3) Attempts to harvest a block at the given coordinate- Overrides:
tryHarvestBlockin classItemInWorldManager
-
tryUseItem
Attempts to right-click use an item by the given EntityPlayer in the given World- Overrides:
tryUseItemin classItemInWorldManager
-
activateBlockOrUseItem
public 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. Args: player, world, itemStack, x, y, z, side, xOffset, yOffset, zOffset- Overrides:
activateBlockOrUseItemin classItemInWorldManager
-