コード例 #1
0
ファイル: BlockMagicleaf.java プロジェクト: 999134/Scapecraft
 public void harvestBlock(World world, EntityPlayer entityplayer, int i, int j, int k, int l) {
   if (!world.isRemote
       && entityplayer.getCurrentEquippedItem() != null
       && entityplayer.getCurrentEquippedItem().itemID == Item.shears.itemID) {
     entityplayer.addStat(StatList.mineBlockStatArray[blockID], 1);
     dropBlockAsItem_do(world, i, j, k, new ItemStack(Block.leaves.blockID, 1, l & 3));
   } else {
     super.harvestBlock(world, entityplayer, i, j, k, l);
   }
 }
コード例 #2
0
 @Override
 public void harvestBlock(
     World world, final EntityPlayer player, final int x, final int y, final int z, final int md) {
   super.harvestBlock(world, player, x, y, z, md);
 }
コード例 #3
0
ファイル: BlockLeaves.java プロジェクト: austinh2001/Minecubz
 /**
  * Called when the player destroys a block with an item that can harvest it. (i, j, k) are the
  * coordinates of the block and l is the block's subtype/damage.
  */
 public void harvestBlock(
     World par1World, EntityPlayer par2EntityPlayer, int par3, int par4, int par5, int par6) {
   super.harvestBlock(par1World, par2EntityPlayer, par3, par4, par5, par6);
 }