예제 #1
0
        public virtual bool ActiveBlockOrUseItem(net.minecraft.src.EntityPlayer entityplayer
                                                 , net.minecraft.src.World world, net.minecraft.src.ItemStack itemstack, int i, int
                                                 j, int k, int l)
        {
            int i1 = world.GetBlockId(i, j, k);

            if (i1 > 0 && net.minecraft.src.Block.blocksList[i1].BlockActivated(world, i, j,
                                                                                k, entityplayer))
            {
                return(true);
            }
            if (itemstack == null)
            {
                return(false);
            }
            else
            {
                return(itemstack.UseItem(entityplayer, world, i, j, k, l));
            }
        }